Skip to content

Commit fa9f10a

Browse files
matthiaskrgrgitbot
authored and
gitbot
committed
Rollup merge of rust-lang#135983 - hkBst:patch-13, r=jhpratt
Doc difference between extend and extend_from_slice fixes rust-lang#97119
2 parents 4165306 + f51dbbe commit fa9f10a

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
@@ -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)