diff options
| author | Petr Zemek <s3rvac@gmail.com> | 2017-03-19 07:02:20 +0100 |
|---|---|---|
| committer | Petr Zemek <s3rvac@gmail.com> | 2017-03-19 07:02:20 +0100 |
| commit | 7add53e47e6713a66400a5b27c98f4620ab39525 (patch) | |
| tree | 43eea21d344da290a0d089cad69f4384d9d7b2d7 /src/libstd | |
| parent | 4853584000c2e71710318b1ff3393b6be25c076a (diff) | |
| download | rust-7add53e47e6713a66400a5b27c98f4620ab39525.tar.gz rust-7add53e47e6713a66400a5b27c98f4620ab39525.zip | |
Fix a typo in path.rs docs
The name of the variable used in the example is `path`, not `os_str`.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs index a744407903b..db446d88900 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -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> { |
