Doc difference between extend and extend_from_slice

fixes #97119
This commit is contained in:
Marijn Schouten
2025-01-24 10:45:39 +01:00
committed by GitHub
parent 48ef38d350
commit 3c3961ba69
+3 -4
View File
@@ -3016,10 +3016,9 @@ pub fn resize(&mut self, new_len: usize, value: T) {
/// 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
///