Skip to content

Commit 49a93df

Browse files
committed
fix: correct {Path,OsStr}::to_string_lossy() docs
1 parent 842d6fc commit 49a93df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: library/std/src/ffi/os_str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ impl OsStr {
852852

853853
/// Converts an `OsStr` to a <code>[Cow]<[str]></code>.
854854
///
855-
/// Any non-Unicode sequences are replaced with
855+
/// Any non-UTF-8 sequences are replaced with
856856
/// [`U+FFFD REPLACEMENT CHARACTER`][U+FFFD].
857857
///
858858
/// [U+FFFD]: crate::char::REPLACEMENT_CHARACTER

Diff for: library/std/src/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2200,7 +2200,7 @@ impl Path {
22002200

22012201
/// Converts a `Path` to a [`Cow<str>`].
22022202
///
2203-
/// Any non-Unicode sequences are replaced with
2203+
/// Any non-UTF-8 sequences are replaced with
22042204
/// [`U+FFFD REPLACEMENT CHARACTER`][U+FFFD].
22052205
///
22062206
/// [U+FFFD]: super::char::REPLACEMENT_CHARACTER

0 commit comments

Comments
 (0)