-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add doc examples for Vec::{as_slice,as_mut_slice}
.
#34930
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
Conversation
/// ``` | ||
/// use std::io::{self, Write}; | ||
/// let buffer = vec![1, 2, 3, 5, 8]; | ||
/// let _ = io::sink().write(buffer.as_slice()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would prefer unwrap
to let _
, the former at least doesn't fail silently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest force push switched to unwrap
.
@bors: r+ rollup |
📌 Commit 00e3149 has been approved by |
⌛ Testing commit 00e3149 with merge 8a5e18e... |
⛄ The build was interrupted to prioritize another pull request. |
⌛ Testing commit 00e3149 with merge 5a44bc9... |
💔 Test failed - auto-linux-64-cargotest |
@bors: retry On Wed, Jul 20, 2016 at 6:36 PM, bors [email protected] wrote:
|
Add doc examples for `Vec::{as_slice,as_mut_slice}`. None
No description provided.