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`.
This commit is contained in:
Corey Farwell 2017-03-19 10:18:23 -04:00 committed by GitHub
commit 94e346b7b7
1 changed files with 1 additions and 1 deletions

View File

@ -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<66>.txt"`.
#[stable(feature = "rust1", since = "1.0.0")]
pub fn to_string_lossy(&self) -> Cow<str> {