Rollup merge of #135821 - hkBst:patch-11, r=ibraheemdev

fix OsString::from_encoded_bytes_unchecked description

fixes #133010
This commit is contained in:
Matthias Krüger 2025-01-21 23:30:21 +01:00 committed by GitHub
commit 50c89b6c21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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