Skip to content

Commit 6e1be4f

Browse files
committed
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.
1 parent eaf5b65 commit 6e1be4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/ffi/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
//! On Unix, [`OsStr`] implements the
105105
//! <code>std::os::unix::ffi::[OsStrExt][unix.OsStrExt]</code> trait, which
106106
//! augments it with two methods, [`from_bytes`] and [`as_bytes`].
107-
//! These do inexpensive conversions from and to UTF-8 byte slices.
107+
//! These do inexpensive conversions from and to byte slices.
108108
//!
109109
//! Additionally, on Unix [`OsString`] implements the
110110
//! <code>std::os::unix::ffi::[OsStringExt][unix.OsStringExt]</code> trait,

0 commit comments

Comments
 (0)