-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
slice::split_at_mut doc example should demonstrate mutability #44314
Comments
Do you mean to add an example like this?
|
Yep, that looks great! |
I'm happy to create a PR to update the documentation. I think it might be best to move some examples to split_at() and focus on the mutability in split_at_mut(). |
Go for it 👍
Agreed, sounds good to me |
Make slice::split_at_mut example demonstrate mutability Moved the examples from split_at_mut to split_at so the example at split_at_mut can just demonstrate mutability. See rust-lang#44314 r? @steveklabnik
Make slice::split_at_mut example demonstrate mutability Moved the examples from split_at_mut to split_at so the example at split_at_mut can just demonstrate mutability. See rust-lang#44314 r? @steveklabnik
Fixed in #44325 |
https://doc.rust-lang.org/std/primitive.slice.html#method.split_at_mut
The doc example should demonstrate the effect of mutation element(s) in the slice
The text was updated successfully, but these errors were encountered: