diff --git a/library/alloc/src/collections/btree/map.rs b/library/alloc/src/collections/btree/map.rs index 199c05dc5df3e..1497d1a84ef77 100644 --- a/library/alloc/src/collections/btree/map.rs +++ b/library/alloc/src/collections/btree/map.rs @@ -979,7 +979,7 @@ impl BTreeMap { 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 394c21bf51cd2..f6aca05f25f16 100644 --- a/library/alloc/src/collections/btree/set.rs +++ b/library/alloc/src/collections/btree/set.rs @@ -892,7 +892,7 @@ impl BTreeSet { 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 /// diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index 2863da059329a..2689c6fd1ac0e 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -1755,7 +1755,7 @@ impl Vec { } } - /// Moves all the elements of `other` into `Self`, leaving `other` empty. + /// Moves all the elements of `other` into `self`, leaving `other` empty. /// /// # Panics /// @@ -1780,7 +1780,7 @@ impl Vec { } } - /// Appends elements to `Self` from other buffer. + /// Appends elements to `self` from other buffer. #[cfg(not(no_global_oom_handling))] #[inline] unsafe fn append_elements(&mut self, other: *const [T]) {