Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 94e346b

Browse files
authoredMar 19, 2017
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`.
2 parents 35cf2f9 + 7add53e commit 94e346b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/libstd/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ impl Path {
15011501
/// assert_eq!(path.to_string_lossy(), "foo.txt");
15021502
/// ```
15031503
///
1504-
/// Had `os_str` contained invalid unicode, the `to_string_lossy` call might
1504+
/// Had `path` contained invalid unicode, the `to_string_lossy` call might
15051505
/// have returned `"fo�.txt"`.
15061506
#[stable(feature = "rust1", since = "1.0.0")]
15071507
pub fn to_string_lossy(&self) -> Cow<str> {

0 commit comments

Comments
 (0)
Failed to load comments.