Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify slice ownership by mentioning borrowing in Rust explanation #4251

Closed
wants to merge 1 commit into from

Conversation

miladtsx
Copy link

Adjusted the explanation of slices in the Rust documentation to make it clearer by emphasizing that slices are references and borrow data rather than owning it. This change aims to improve understanding of Rust’s ownership and borrowing model for newcomers.

Copy link
Contributor

@chriskrycho chriskrycho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, but the “so” in the sentence does this work already!

@chriskrycho chriskrycho closed this Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants