We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a32abb commit e7821e5Copy full SHA for e7821e5
library/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