fix: correct {Path,OsStr}::to_string_lossy() docs

This commit is contained in:
Ryosuke Takahashi 2024-09-05 00:48:00 +09:00
parent 842d6fc32e
commit 49a93df77d
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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