Skip to content

Commit 1aa4a57

Browse files
JasonShinCentril
andauthored
Update src/libstd/path.rs to shorten the explanation for .to_str validation step
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
1 parent 3b15b16 commit 1aa4a57

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
@@ -1819,7 +1819,7 @@ impl Path {
18191819
/// Yields a [`&str`] slice if the `Path` is valid unicode.
18201820
///
18211821
/// This conversion may entail doing a check for UTF-8 validity.
1822-
/// Also it it worthwhile noting that validation is performed because Non-UTF-8 strings are
1822+
/// Note that validation is performed because non-UTF-8 strings are
18231823
/// perfectly valid for some OS.
18241824
///
18251825
/// [`&str`]: ../primitive.str.html

0 commit comments

Comments
 (0)