-
Notifications
You must be signed in to change notification settings - Fork 13.3k
doc: miscellaneous improvements to std::path::Path examples #25666
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
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
/// let path = Path::new("hello_world.rs"); | ||
/// let filename = "hello_world.rs"; | ||
/// let path = Path::new("foo.txt"); | ||
/// let os_str = std::ffi::OsStr::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.
This is more idiomatically use std::ffi::OsStr; OsStr::new
r=me after a nit |
@bors: r+ rollup |
📌 Commit 5263d62 has been approved by |
\0/ |
@bors: r- |
fixed |
@bors: r+ rollup |
📌 Commit 462829c has been approved by |
Thanks :) |
No description provided.