]> git.lizzy.rs Git - rust.git/commitdiff
'Copies' => 'Clones' in Cow method docs.
authorNick Hamann <nick@wabbo.org>
Sun, 19 Jul 2015 03:54:55 +0000 (22:54 -0500)
committerNick Hamann <nick@wabbo.org>
Sun, 19 Jul 2015 03:54:55 +0000 (22:54 -0500)
It seems slightly more consistent to say 'Clones' here instead of 'Copies'.
The docs for the `ToOwned` trait talk about cloning and not copying.

src/libcollections/borrow.rs

index d7242b9077556da112e5bac4bbd9eb40c01485d6..1c75636cb052d39304e06224a520c1b7eecfa5a0 100644 (file)
@@ -215,7 +215,7 @@ fn clone(&self) -> Cow<'a, B> {
 impl<'a, B: ?Sized> Cow<'a, B> where B: ToOwned {
     /// Acquires a mutable reference to the owned form of the data.
     ///
-    /// Copies the data if it is not already owned.
+    /// Clones the data if it is not already owned.
     ///
     /// # Examples
     ///
@@ -241,7 +241,7 @@ pub fn to_mut(&mut self) -> &mut <B as ToOwned>::Owned {
 
     /// Extracts the owned data.
     ///
-    /// Copies the data if it is not already owned.
+    /// Clones the data if it is not already owned.
     ///
     /// # Examples
     ///