Skip to content

Commit e7821e5

Browse files
committed
Fix documentation of conversion from String to OsString
1 parent 2a32abb commit e7821e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/ffi/os_str.rs

Lines changed: 1 addition & 1 deletion
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)