Point out the clone operation in summary line docs of Vec::extend_from_slice

This commit is contained in:
Liigo Zhuang 2016-05-25 10:09:20 +08:00
parent dd6e8d45e1
commit f5a398d056

View 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.