about summary refs log tree commit diff
path: root/src/libcollections
diff options
context:
space:
mode:
authorAlexander Merritt <merritt.alex@gatech.edu>2016-07-09 21:43:47 -0400
committerAlexander Merritt <merritt.alex@gatech.edu>2016-07-09 21:50:25 -0400
commit6a4016933e707019f637d9bf0e274bf45bd0cc13 (patch)
treef80deb6005bdf5572eb9a2246a24e5d1d9f48b2b /src/libcollections
parentbb4a79b087158f396b984bdf552d2c90890b12a3 (diff)
downloadrust-6a4016933e707019f637d9bf0e274bf45bd0cc13.tar.gz
rust-6a4016933e707019f637d9bf0e274bf45bd0cc13.zip
make clone_from_slice consistent with copy_from_slice
What 'this slice' refers to is not intuitive (we're in the docs for Vec).
Diffstat (limited to 'src/libcollections')
-rw-r--r--src/libcollections/slice.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/slice.rs b/src/libcollections/slice.rs
index cef8a33703b..943a14d83d0 100644
--- a/src/libcollections/slice.rs
+++ b/src/libcollections/slice.rs
@@ -848,7 +848,7 @@ impl<T> [T] {
 
     /// Copies the elements from `src` into `self`.
     ///
-    /// The length of this slice must be the same as the slice passed in.
+    /// The length of `src` must be the same as `self`.
     ///
     /// # Panics
     ///