We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8e4ff0 commit f16f037Copy full SHA for f16f037
std/src/ffi/os_str.rs
@@ -361,7 +361,7 @@ impl OsString {
361
impl From<String> for OsString {
362
/// Converts a [`String`] into a [`OsString`].
363
///
364
- /// The conversion copies the data, and includes an allocation on the heap.
+ /// This conversion does not allocate or copy memory.
365
#[inline]
366
fn from(s: String) -> OsString {
367
OsString { inner: Buf::from_string(s) }
0 commit comments