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

Add examples + documentation for std::path #23932

Merged
merged 1 commit into from
Apr 2, 2015

Conversation

steveklabnik
Copy link
Member

No description provided.

@rust-highfive
Copy link
Collaborator

r? @pcwalton

(rust_highfive has picked a reviewer for you, use r? to override)

@steveklabnik
Copy link
Member Author

r? @alexcrichton

/// ```
/// use std::path::Path;
///
/// Path::new("foo.txt");
Copy link
Contributor

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.

Copy link
Member Author

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.

Copy link
Contributor

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!

@flaper87
Copy link
Contributor

flaper87 commented Apr 1, 2015

tiny nit, r=me if you either think it's not worth fixing it or you fix it. 🍰

@steveklabnik
Copy link
Member Author

@bors: r=flaper87 rollup

@bors
Copy link
Contributor

bors commented Apr 1, 2015

📌 Commit 8ded156 has been approved by flaper87

Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 1, 2015
@alexcrichton alexcrichton merged commit 8ded156 into rust-lang:master Apr 2, 2015
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.

6 participants