diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-21 23:30:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-21 23:30:21 +0100 |
| commit | 50c89b6c21e47fa09897a2d9abefe809bda5ad3b (patch) | |
| tree | acf0286ea1a454ffda0cb93e810b475e1ff876c7 /library/std/src | |
| parent | 2ba3ece3a183e5ac5aa5568909b20311037a3e61 (diff) | |
| parent | fdc80af5c5ef65159d086e55a21419ead24a3c21 (diff) | |
| download | rust-50c89b6c21e47fa09897a2d9abefe809bda5ad3b.tar.gz rust-50c89b6c21e47fa09897a2d9abefe809bda5ad3b.zip | |
Rollup merge of #135821 - hkBst:patch-11, r=ibraheemdev
fix OsString::from_encoded_bytes_unchecked description fixes #133010
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/ffi/os_str.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/ffi/os_str.rs b/library/std/src/ffi/os_str.rs index 7fb57d41043..c4c8dbccd7a 100644 --- a/library/std/src/ffi/os_str.rs +++ b/library/std/src/ffi/os_str.rs @@ -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 |
