Fix documentation of conversion from String to OsString

This commit is contained in:
Frank Steffahn 2021-03-31 12:11:24 +02:00
parent 2a32abbcde
commit e7821e5475

View file

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