about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorMarijn Schouten <hkBst@users.noreply.github.com>2025-01-24 10:45:39 +0100
committerGitHub <noreply@github.com>2025-01-24 10:45:39 +0100
commit3c3961ba69c6acb9edc1394e6bd7f65fd0b21946 (patch)
treeddba37a62e4da72dee91c8612a3b60c3eaf5bf0a /library/alloc/src
parent48ef38d3503a04e5e18157e664e3e65dc7eca1a5 (diff)
downloadrust-3c3961ba69c6acb9edc1394e6bd7f65fd0b21946.tar.gz
rust-3c3961ba69c6acb9edc1394e6bd7f65fd0b21946.zip
Doc difference between extend and extend_from_slice
fixes #97119
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/vec/mod.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs
index cd2afd7a473..a2909f6d61f 100644
--- a/library/alloc/src/vec/mod.rs
+++ b/library/alloc/src/vec/mod.rs
@@ -3016,10 +3016,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
     ///