Skip to content

Commit cd5dca3

Browse files
authored
fix OsString::from_encoded_bytes_unchecked description
1 parent 9e9be19 commit cd5dca3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/src/ffi/os_str.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ impl OsString {
203203
self
204204
}
205205

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

0 commit comments

Comments
 (0)