Skip to content

Commit caa732a

Browse files
Rollup merge of rust-lang#33858 - liigo:patch-7, r=GuillaumeGomez
Point out the clone operation in summary line docs of `Vec::extend_from_slice`
2 parents 98e768f + f5a398d commit caa732a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ impl<T: Clone> Vec<T> {
966966
}
967967
}
968968

969-
/// Appends all elements in a slice to the `Vec`.
969+
/// Clones and appends all elements in a slice to the `Vec`.
970970
///
971971
/// Iterates over the slice `other`, clones each element, and then appends
972972
/// it to this `Vec`. The `other` vector is traversed in-order.

0 commit comments

Comments
 (0)