Skip to content

Commit 6ab5ba6

Browse files
authored
Rollup merge of rust-lang#135821 - hkBst:patch-11, r=ibraheemdev
fix OsString::from_encoded_bytes_unchecked description fixes rust-lang#133010
2 parents 8ea3470 + cd5dca3 commit 6ab5ba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/src/ffi/os_str.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ impl OsString {
203203
self
204204
}
205205

206-
/// Converts the `OsString` into a byte slice. To convert the byte slice back into an
207-
/// `OsString`, use the [`OsStr::from_encoded_bytes_unchecked`] function.
206+
/// Converts the `OsString` into a byte vector. To convert the byte vector back into an
207+
/// `OsString`, use the [`OsString::from_encoded_bytes_unchecked`] function.
208208
///
209209
/// The byte encoding is an unspecified, platform-specific, self-synchronizing superset of UTF-8.
210210
/// By being a self-synchronizing superset of UTF-8, this encoding is also a superset of 7-bit

0 commit comments

Comments
 (0)