diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-05-28 08:45:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-28 08:45:53 +0200 |
| commit | 529fcb579b6944fa6256ffb8f8362f6749c7bf8d (patch) | |
| tree | 4428583dc9bea87c2264c5027aadc9678a080472 | |
| parent | 7e7dd1c0698187f54b2c3b36e8e3db1b67d3b2c4 (diff) | |
| parent | 202026441be428046b164e1537ed79972041f5aa (diff) | |
| download | rust-529fcb579b6944fa6256ffb8f8362f6749c7bf8d.tar.gz rust-529fcb579b6944fa6256ffb8f8362f6749c7bf8d.zip | |
Rollup merge of #97448 - Xiretza:os-str-unix-doc, r=joshtriplett
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.
| -rw-r--r-- | library/std/src/ffi/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/ffi/mod.rs b/library/std/src/ffi/mod.rs index 10983a33232..94ae97a2e40 100644 --- a/library/std/src/ffi/mod.rs +++ b/library/std/src/ffi/mod.rs @@ -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, |
