summary refs log tree commit diff
path: root/library/alloc/src/collections
diff options
context:
space:
mode:
authorVeeupup <931418134@qq.com>2021-12-29 18:01:17 +0800
committerVeeupup <931418134@qq.com>2021-12-29 18:01:17 +0800
commit249eb1c589bd12b2a26d9603460d62d514b59b90 (patch)
tree05dd96afdde41a98a838ac3d9292f938089100f7 /library/alloc/src/collections
parentb70cc6422c141191aeb33f5ab6faba992118812b (diff)
downloadrust-249eb1c589bd12b2a26d9603460d62d514b59b90.tar.gz
rust-249eb1c589bd12b2a26d9603460d62d514b59b90.zip
fix typo in btree/vec doc: Self -> self
Diffstat (limited to 'library/alloc/src/collections')
-rw-r--r--library/alloc/src/collections/btree/map.rs2
-rw-r--r--library/alloc/src/collections/btree/set.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/collections/btree/map.rs b/library/alloc/src/collections/btree/map.rs
index 199c05dc5df..1497d1a84ef 100644
--- a/library/alloc/src/collections/btree/map.rs
+++ b/library/alloc/src/collections/btree/map.rs
@@ -979,7 +979,7 @@ impl<K, V> BTreeMap<K, V> {
         self.drain_filter(|k, v| !f(k, v));
     }
 
-    /// Moves all elements from `other` into `Self`, leaving `other` empty.
+    /// Moves all elements from `other` into `self`, leaving `other` empty.
     ///
     /// # Examples
     ///
diff --git a/library/alloc/src/collections/btree/set.rs b/library/alloc/src/collections/btree/set.rs
index 394c21bf51c..f6aca05f25f 100644
--- a/library/alloc/src/collections/btree/set.rs
+++ b/library/alloc/src/collections/btree/set.rs
@@ -892,7 +892,7 @@ impl<T> BTreeSet<T> {
         self.drain_filter(|v| !f(v));
     }
 
-    /// Moves all elements from `other` into `Self`, leaving `other` empty.
+    /// Moves all elements from `other` into `self`, leaving `other` empty.
     ///
     /// # Examples
     ///