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:
Petr Zemek 2017-03-19 07:02:20 +01:00
parent 4853584000
commit 7add53e47e
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> {