about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorPetr Zemek <s3rvac@gmail.com>2017-03-19 07:02:20 +0100
committerPetr Zemek <s3rvac@gmail.com>2017-03-19 07:02:20 +0100
commit7add53e47e6713a66400a5b27c98f4620ab39525 (patch)
tree43eea21d344da290a0d089cad69f4384d9d7b2d7 /src/libstd
parent4853584000c2e71710318b1ff3393b6be25c076a (diff)
downloadrust-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.rs2
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> {