]> git.lizzy.rs Git - rust.git/commitdiff
Point out the clone operation in summary line docs of `Vec::extend_from_slice`
authorLiigo Zhuang <liigo@qq.com>
Wed, 25 May 2016 02:09:20 +0000 (10:09 +0800)
committerLiigo Zhuang <liigo@qq.com>
Wed, 25 May 2016 02:09:20 +0000 (10:09 +0800)
src/libcollections/vec.rs

index 58d4a4ed4eb084c04e0f47279d2b96c891280a47..bd1bf6e9cc37591b3269d2e1ad6308ab2fd54a48 100644 (file)
@@ -966,7 +966,7 @@ fn extend_with_element(&mut self, n: usize, value: T) {
         }
     }
 
-    /// Appends all elements in a slice to the `Vec`.
+    /// Clones and appends all elements in a slice to the `Vec`.
     ///
     /// Iterates over the slice `other`, clones each element, and then appends
     /// it to this `Vec`. The `other` vector is traversed in-order.