From eb4746892bf255829d4184f97c012b64907db00c Mon Sep 17 00:00:00 2001
From: Ryosuke Takahashi <rjooske@gmail.com>
Date: Thu, 5 Sep 2024 00:48:00 +0900
Subject: [PATCH] fix: correct {Path,OsStr}::to_string_lossy() docs

---
 std/src/ffi/os_str.rs | 2 +-
 std/src/path.rs       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/std/src/ffi/os_str.rs b/std/src/ffi/os_str.rs
index 918eec2d0d8ef..99bea676e1224 100644
--- a/std/src/ffi/os_str.rs
+++ b/std/src/ffi/os_str.rs
@@ -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
diff --git a/std/src/path.rs b/std/src/path.rs
index 9eaa0e01c2c00..506ad445b6bed 100644
--- a/std/src/path.rs
+++ b/std/src/path.rs
@@ -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