From 7add53e47e6713a66400a5b27c98f4620ab39525 Mon Sep 17 00:00:00 2001 From: Petr Zemek Date: Sun, 19 Mar 2017 07:02:20 +0100 Subject: [PATCH] Fix a typo in path.rs docs The name of the variable used in the example is `path`, not `os_str`. --- src/libstd/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ pub fn to_str(&self) -> Option<&str> { /// 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 { -- 2.44.0