Skip to content

Commit f51dbbe

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

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: alloc/src/vec/mod.rs

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

0 commit comments

Comments
 (0)