diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-02-28 20:05:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-28 20:05:13 +0100 |
| commit | 9d23c320e43b3d4e2ea0761fb56368bdd9109ed4 (patch) | |
| tree | 4faf93a8b51dd97c7ab74b784230996cb5bcc0b0 /library/alloc/src/collections/btree | |
| parent | 97cde9fe08804a3a5208d77f6870ad7d43f8c9c3 (diff) | |
| parent | 249eb1c589bd12b2a26d9603460d62d514b59b90 (diff) | |
| download | rust-9d23c320e43b3d4e2ea0761fb56368bdd9109ed4.tar.gz rust-9d23c320e43b3d4e2ea0761fb56368bdd9109ed4.zip | |
Rollup merge of #92399 - Veeupup:fix_vec_typo, r=Dylan-DPC
fix typo in btree/vec doc: Self -> self this pr fixes #92345 the documentation refers to the object the method is called for, not the type, so it should be using the lower case self.
Diffstat (limited to 'library/alloc/src/collections/btree')
| -rw-r--r-- | library/alloc/src/collections/btree/map.rs | 2 | ||||
| -rw-r--r-- | library/alloc/src/collections/btree/set.rs | 2 |
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 67f5b386ecd..7890c1040f0 100644 --- a/library/alloc/src/collections/btree/map.rs +++ b/library/alloc/src/collections/btree/map.rs @@ -986,7 +986,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 3031bf86a7b..bab6af82698 100644 --- a/library/alloc/src/collections/btree/set.rs +++ b/library/alloc/src/collections/btree/set.rs @@ -895,7 +895,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 /// |
