Skip to content

Commit 1621af0

Browse files
authored
Rollup merge of #135983 - hkBst:patch-13, r=jhpratt
Doc difference between extend and extend_from_slice fixes #97119
2 parents d6eeb36 + 3c3961b commit 1621af0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

library/alloc/src/vec/mod.rs

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

0 commit comments

Comments
 (0)