diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-03-19 10:18:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-19 10:18:23 -0400 |
| commit | 94e346b7b79d37fea729fa68fc2838e90724cc3f (patch) | |
| tree | 54cee6512393829c234980aefb0c90260747278e /src/libstd | |
| parent | 35cf2f96ce52cdb889470b0e5ff1ab402fcf7c25 (diff) | |
| parent | 7add53e47e6713a66400a5b27c98f4620ab39525 (diff) | |
| download | rust-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.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> { |
