Point out the clone operation in summary line docs of Vec::extend_from_slice
This commit is contained in:
parent
dd6e8d45e1
commit
f5a398d056
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user