Skip to content

Commit

Permalink
fix: correct {Path,OsStr}::to_string_lossy() docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rjooske committed Sep 4, 2024
1 parent c313c07 commit eb47468
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion std/src/ffi/os_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ impl OsStr {

/// 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
Expand Down
2 changes: 1 addition & 1 deletion std/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2200,7 +2200,7 @@ impl Path {

/// 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
Expand Down

0 comments on commit eb47468

Please sign in to comment.