Skip to content

Commit

Permalink
Rollup merge of rust-lang#135983 - hkBst:patch-13, r=jhpratt
Browse files Browse the repository at this point in the history
Doc difference between extend and extend_from_slice

fixes rust-lang#97119
  • Loading branch information
matthiaskrgr authored Jan 24, 2025
2 parents f86eb04 + 3c3961b commit ed77bf7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions library/alloc/src/vec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3013,10 +3013,9 @@ impl<T: Clone, A: Allocator> Vec<T, A> {
/// Iterates over the slice `other`, clones each element, and then appends
/// it to this `Vec`. The `other` slice is traversed in-order.
///
/// Note that this function is same as [`extend`] except that it is
/// specialized to work with slices instead. If and when Rust gets
/// specialization this function will likely be deprecated (but still
/// available).
/// Note that this function is the same as [`extend`],
/// except that it also works with slice elements that are Clone but not Copy.
/// If Rust gets specialization this function may be deprecated.
///
/// # Examples
///
Expand Down

0 comments on commit ed77bf7

Please sign in to comment.