Skip to content

Commit f16f037

Browse files
committed
Fix documentation of conversion from String to OsString
1 parent c8e4ff0 commit f16f037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/ffi/os_str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ impl OsString {
361361
impl From<String> for OsString {
362362
/// Converts a [`String`] into a [`OsString`].
363363
///
364-
/// The conversion copies the data, and includes an allocation on the heap.
364+
/// This conversion does not allocate or copy memory.
365365
#[inline]
366366
fn from(s: String) -> OsString {
367367
OsString { inner: Buf::from_string(s) }

0 commit comments

Comments
 (0)