Skip to content

Commit e902dd5

Browse files
hkBstgitbot
authored and
gitbot
committed
Doc difference between extend and extend_from_slice
fixes rust-lang#97119
1 parent 7e40bf4 commit e902dd5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

alloc/src/vec/mod.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -3013,10 +3013,9 @@ impl<T: Clone, A: Allocator> Vec<T, A> {
30133013
/// Iterates over the slice `other`, clones each element, and then appends
30143014
/// it to this `Vec`. The `other` slice is traversed in-order.
30153015
///
3016-
/// Note that this function is same as [`extend`] except that it is
3017-
/// specialized to work with slices instead. If and when Rust gets
3018-
/// specialization this function will likely be deprecated (but still
3019-
/// available).
3016+
/// Note that this function is the same as [`extend`],
3017+
/// except that it also works with slice elements that are Clone but not Copy.
3018+
/// If Rust gets specialization this function may be deprecated.
30203019
///
30213020
/// # Examples
30223021
///

0 commit comments

Comments
 (0)