]> git.lizzy.rs Git - rust.git/commitdiff
Update comments
authorBastian Gruber <gruberbastian@me.com>
Mon, 25 Jun 2018 19:29:22 +0000 (21:29 +0200)
committerBastian Gruber <gruberbastian@me.com>
Wed, 21 Nov 2018 08:59:01 +0000 (09:59 +0100)
src/libstd/path.rs

index 9145eeb6063f6532fabbb6ccc7b7da50e2753776..e631bb90f5741068fa5c71462d1bb96ce68776d8 100644 (file)
@@ -1431,8 +1431,7 @@ fn from(s: &'a T) -> PathBuf {
 #[stable(feature = "rust1", since = "1.0.0")]
 impl From<OsString> for PathBuf {
     /// Converts a `OsString` into a `PathBuf`.
-    /// This conversion copies the data.
-    /// This conversion does allocate memory.
+    /// This conversion does not allocate memory
     fn from(s: OsString) -> PathBuf {
         PathBuf { inner: s }
     }
@@ -1441,8 +1440,7 @@ fn from(s: OsString) -> PathBuf {
 #[stable(feature = "from_path_buf_for_os_string", since = "1.14.0")]
 impl From<PathBuf> for OsString {
     /// Converts a `PathBuf` into a `OsString`.
-    /// This conversion copies the data.
-    /// This conversion does allocate memory.
+    /// This conversion does not allocate memory
     fn from(path_buf : PathBuf) -> OsString {
         path_buf.inner
     }