fix: correct {Path,OsStr}::to_string_lossy() docs
This commit is contained in:
parent
842d6fc32e
commit
49a93df77d
@ -852,7 +852,7 @@ pub fn to_str(&self) -> Option<&str> {
|
||||
|
||||
/// Converts an `OsStr` to a <code>[Cow]<[str]></code>.
|
||||
///
|
||||
/// Any non-Unicode sequences are replaced with
|
||||
/// Any non-UTF-8 sequences are replaced with
|
||||
/// [`U+FFFD REPLACEMENT CHARACTER`][U+FFFD].
|
||||
///
|
||||
/// [U+FFFD]: crate::char::REPLACEMENT_CHARACTER
|
||||
|
@ -2200,7 +2200,7 @@ pub fn to_str(&self) -> Option<&str> {
|
||||
|
||||
/// Converts a `Path` to a [`Cow<str>`].
|
||||
///
|
||||
/// Any non-Unicode sequences are replaced with
|
||||
/// Any non-UTF-8 sequences are replaced with
|
||||
/// [`U+FFFD REPLACEMENT CHARACTER`][U+FFFD].
|
||||
///
|
||||
/// [U+FFFD]: super::char::REPLACEMENT_CHARACTER
|
||||
|
Loading…
Reference in New Issue
Block a user