about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorBastian Gruber <gruberbastian@me.com>2018-06-25 21:29:22 +0200
committerBastian Gruber <gruberbastian@me.com>2018-11-21 09:59:01 +0100
commit88a708dd6a5bb14f3a19ae98238ddf2d03cb93d3 (patch)
treec8244697f392697aa04f1653a0fd395bb0db15f5 /src/libstd
parent072bca3ff5a3907a71c22fba041825cfa3eb321e (diff)
downloadrust-88a708dd6a5bb14f3a19ae98238ddf2d03cb93d3.tar.gz
rust-88a708dd6a5bb14f3a19ae98238ddf2d03cb93d3.zip
Update comments
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/path.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index 9145eeb6063..e631bb90f57 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -1431,8 +1431,7 @@ impl<'a, T: ?Sized + AsRef<OsStr>> From<&'a T> for 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 @@ impl From<OsString> for 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
     }