Skip to content

Commit f5a398d

Browse files
committed
Point out the clone operation in summary line docs of Vec::extend_from_slice
1 parent dd6e8d4 commit f5a398d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/vec.rs

+1-1
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)