Skip to content

Commit

Permalink
Rollup merge of rust-lang#40648 - s3rvac:fix-path-docs-typo, r=frewsxcv
Browse files Browse the repository at this point in the history
Fix a typo in path.rs docs

The name of the variable used in the example is `path`, not `os_str`.
  • Loading branch information
frewsxcv committed Mar 19, 2017
2 parents 35cf2f9 + 7add53e commit 94e346b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,7 @@ impl Path {
/// assert_eq!(path.to_string_lossy(), "foo.txt");
/// ```
///
/// Had `os_str` contained invalid unicode, the `to_string_lossy` call might
/// Had `path` contained invalid unicode, the `to_string_lossy` call might
/// have returned `"fo�.txt"`.
#[stable(feature = "rust1", since = "1.0.0")]
pub fn to_string_lossy(&self) -> Cow<str> {
Expand Down

0 comments on commit 94e346b

Please sign in to comment.