about summary refs log tree commit diff
path: root/library/alloc/src/collections
diff options
context:
space:
mode:
authorNoa <coolreader18@gmail.com>2024-04-17 00:18:04 -0500
committerNoa <coolreader18@gmail.com>2024-04-17 00:18:04 -0500
commit87db7c32a70238785083b6de772cfd00e0adbc10 (patch)
tree280db410bfa206b38de466ef13f3d2c0ce353159 /library/alloc/src/collections
parentc0e913fdd7f35b197c6da198c25569fc63244b85 (diff)
downloadrust-87db7c32a70238785083b6de772cfd00e0adbc10.tar.gz
rust-87db7c32a70238785083b6de772cfd00e0adbc10.zip
Address comments
Diffstat (limited to 'library/alloc/src/collections')
-rw-r--r--library/alloc/src/collections/vec_deque/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/library/alloc/src/collections/vec_deque/mod.rs b/library/alloc/src/collections/vec_deque/mod.rs
index 8df7ca3411d..fb098952393 100644
--- a/library/alloc/src/collections/vec_deque/mod.rs
+++ b/library/alloc/src/collections/vec_deque/mod.rs
@@ -116,9 +116,7 @@ impl<T: Clone, A: Allocator + Clone> Clone for VecDeque<T, A> {
     /// Overwrites the contents of `self` with a clone of the contents of `source`.
     ///
     /// This method is preferred over simply assigning `source.clone()` to `self`,
-    /// as it avoids reallocation if possible. Additionally, if the element type
-    /// `T` overrides `clone_from()`, this will reuse the resources of `self`'s
-    /// elements as well.
+    /// as it avoids reallocation if possible.
     fn clone_from(&mut self, source: &Self) {
         self.clear();
         self.extend(source.iter().cloned());