Fix documentation of conversion from String to OsString
This commit is contained in:
parent
2a32abbcde
commit
e7821e5475
@ -361,7 +361,7 @@ impl OsString {
|
|||||||
impl From<String> for OsString {
|
impl From<String> for OsString {
|
||||||
/// Converts a [`String`] into a [`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]
|
#[inline]
|
||||||
fn from(s: String) -> OsString {
|
fn from(s: String) -> OsString {
|
||||||
OsString { inner: Buf::from_string(s) }
|
OsString { inner: Buf::from_string(s) }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user