about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-07-19 04:56:33 +0000
committerbors <bors@rust-lang.org>2015-07-19 04:56:33 +0000
commit86fa65bcc5882be3e1d3826a07bd3a0db88a045a (patch)
tree190c4f0cab07e5373788e9cd6db2af7017076426
parent9d460c5517799d484a8ed71e03a1a680d74d1de9 (diff)
parentf257a1501fe4a07ee79aa12d2ca316da694b91a7 (diff)
downloadrust-86fa65bcc5882be3e1d3826a07bd3a0db88a045a.tar.gz
rust-86fa65bcc5882be3e1d3826a07bd3a0db88a045a.zip
Auto merge of #27122 - nham:tweak-cow-docs, r=Gankro
It seems slightly more consistent to say 'Clones' here instead of 'Copies'. The docs for the `ToOwned` trait talk about cloning and not copying.
-rw-r--r--src/libcollections/borrow.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcollections/borrow.rs b/src/libcollections/borrow.rs
index d7242b90775..1c75636cb05 100644
--- a/src/libcollections/borrow.rs
+++ b/src/libcollections/borrow.rs
@@ -215,7 +215,7 @@ impl<'a, B: ?Sized> Clone for Cow<'a, B> where B: ToOwned {
 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 @@ impl<'a, B: ?Sized> Cow<'a, B> where B: ToOwned {
 
     /// Extracts the owned data.
     ///
-    /// Copies the data if it is not already owned.
+    /// Clones the data if it is not already owned.
     ///
     /// # Examples
     ///