-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add examples + documentation for std::path #23932
Conversation
r? @pcwalton (rust_highfive has picked a reviewer for you, use r? to override) |
/// ``` | ||
/// use std::path::Path; | ||
/// | ||
/// Path::new("foo.txt"); |
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.
nit: In other places you bind this to a variable. I guess we should do it here as well, for consistency with other examples.
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 did it for those because those return a Result<T, E>
, which is must_use
.
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 knew there was a reason! Thanks!
tiny nit, r=me if you either think it's not worth fixing it or you fix it. 🍰 |
@bors: r=flaper87 rollup |
📌 Commit 8ded156 has been approved by |
No description provided.