Skip to content

Fixed with_extension documentation bug #24342

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

Merged
merged 1 commit into from
Apr 15, 2015
Merged

Conversation

tbelaire
Copy link
Contributor

It was mistakenly calling with_extension with "foo.txt" instead of "txt".
I've also added an assert. This also calls more attention to the fact you get back a PathBuf, instead of a Path, which I feel is easy to miss when skimming.

It was mistakenly calling it with "foo.txt" instead of "txt".
I've also added an assert.
@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @huonw (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see CONTRIBUTING.md for more information.

@huonw
Copy link
Member

huonw commented Apr 12, 2015

@bors r+

Thanks!

@bors
Copy link
Collaborator

bors commented Apr 12, 2015

📌 Commit 912a872 has been approved by huonw

@huonw
Copy link
Member

huonw commented Apr 12, 2015

@bors rollup

Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 12, 2015
It was mistakenly calling `with_extension` with "foo.txt" instead of "txt".  
I've also added an assert.  This also calls more attention to the fact you get back a PathBuf, instead of a Path, which I feel is easy to miss when skimming.
Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 12, 2015
It was mistakenly calling `with_extension` with "foo.txt" instead of "txt".
I've also added an assert.  This also calls more attention to the fact you get back a PathBuf, instead of a Path, which I feel is easy to miss when skimming.
bors added a commit that referenced this pull request Apr 12, 2015
bors added a commit that referenced this pull request Apr 12, 2015
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Apr 14, 2015
It was mistakenly calling `with_extension` with "foo.txt" instead of "txt".
I've also added an assert.  This also calls more attention to the fact you get back a PathBuf, instead of a Path, which I feel is easy to miss when skimming.
@bors bors merged commit 912a872 into rust-lang:master Apr 15, 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.

4 participants