about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-03-19 10:18:23 -0400
committerGitHub <noreply@github.com>2017-03-19 10:18:23 -0400
commit94e346b7b79d37fea729fa68fc2838e90724cc3f (patch)
tree54cee6512393829c234980aefb0c90260747278e /src/libstd
parent35cf2f96ce52cdb889470b0e5ff1ab402fcf7c25 (diff)
parent7add53e47e6713a66400a5b27c98f4620ab39525 (diff)
downloadrust-94e346b7b79d37fea729fa68fc2838e90724cc3f.tar.gz
rust-94e346b7b79d37fea729fa68fc2838e90724cc3f.zip
Rollup merge of #40648 - s3rvac:fix-path-docs-typo, r=frewsxcv
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> {