Skip to content

Commit 88a708d

Browse files
author
Bastian Gruber
committed
Update comments
1 parent 072bca3 commit 88a708d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/libstd/path.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,8 +1431,7 @@ impl<'a, T: ?Sized + AsRef<OsStr>> From<&'a T> for PathBuf {
14311431
#[stable(feature = "rust1", since = "1.0.0")]
14321432
impl From<OsString> for PathBuf {
14331433
/// Converts a `OsString` into a `PathBuf`.
1434-
/// This conversion copies the data.
1435-
/// This conversion does allocate memory.
1434+
/// This conversion does not allocate memory
14361435
fn from(s: OsString) -> PathBuf {
14371436
PathBuf { inner: s }
14381437
}
@@ -1441,8 +1440,7 @@ impl From<OsString> for PathBuf {
14411440
#[stable(feature = "from_path_buf_for_os_string", since = "1.14.0")]
14421441
impl From<PathBuf> for OsString {
14431442
/// Converts a `PathBuf` into a `OsString`.
1444-
/// This conversion copies the data.
1445-
/// This conversion does allocate memory.
1443+
/// This conversion does not allocate memory
14461444
fn from(path_buf : PathBuf) -> OsString {
14471445
path_buf.inner
14481446
}

0 commit comments

Comments
 (0)