Update src/libstd/path.rs to shorten the explanation for .to_str validation step

Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
This commit is contained in:
Jason Shin
2019-08-01 13:55:01 +10:00
committed by GitHub
parent 3b15b1664e
commit 1aa4a57827

View File

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