Skip to content

Commit

Permalink
Unrolled build for rust-lang#135821
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#135821 - hkBst:patch-11, r=ibraheemdev

fix OsString::from_encoded_bytes_unchecked description

fixes rust-lang#133010
  • Loading branch information
rust-timer authored Jan 22, 2025
2 parents a24bdc6 + fdc80af commit 71ae0a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/ffi/os_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71ae0a4

Please sign in to comment.