Skip to content

Commit

Permalink
Rollup merge of #97448 - Xiretza:os-str-unix-doc, r=joshtriplett
Browse files Browse the repository at this point in the history
docs: Don't imply that OsStr on Unix is always UTF-8

The methods in `OsStrExt` consume and return `&[u8]` and don't perform any UTF-8 checks.
  • Loading branch information
Dylan-DPC authored May 28, 2022
2 parents 1d93e81 + 9ff7d29 commit 91c3d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/src/ffi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
//! On Unix, [`OsStr`] implements the
//! <code>std::os::unix::ffi::[OsStrExt][unix.OsStrExt]</code> trait, which
//! augments it with two methods, [`from_bytes`] and [`as_bytes`].
//! These do inexpensive conversions from and to UTF-8 byte slices.
//! These do inexpensive conversions from and to byte slices.
//!
//! Additionally, on Unix [`OsString`] implements the
//! <code>std::os::unix::ffi::[OsStringExt][unix.OsStringExt]</code> trait,
Expand Down

0 comments on commit 91c3d5b

Please sign in to comment.