Skip to content

Commit

Permalink
Fix a typo in path.rs docs
Browse files Browse the repository at this point in the history
The name of the variable used in the example is `path`, not `os_str`.
  • Loading branch information
s3rvac committed Mar 19, 2017
1 parent 4853584 commit 7add53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/path.rs
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 7add53e

Please sign in to comment.