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.
This commit is contained in:
Matthias Krüger 2022-02-28 20:05:13 +01:00 committed by GitHub
commit 9d23c320e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -986,7 +986,7 @@ impl<K, V> BTreeMap<K, V> {
self.drain_filter(|k, v| !f(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 /// # Examples
/// ///

View File

@ -895,7 +895,7 @@ impl<T> BTreeSet<T> {
self.drain_filter(|v| !f(v)); 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 /// # Examples
/// ///

View File

@ -1763,7 +1763,7 @@ impl<T, A: Allocator> Vec<T, A> {
} }
} }
/// Moves all the elements of `other` into `Self`, leaving `other` empty. /// Moves all the elements of `other` into `self`, leaving `other` empty.
/// ///
/// # Panics /// # Panics
/// ///
@ -1788,7 +1788,7 @@ impl<T, A: Allocator> Vec<T, A> {
} }
} }
/// Appends elements to `Self` from other buffer. /// Appends elements to `self` from other buffer.
#[cfg(not(no_global_oom_handling))] #[cfg(not(no_global_oom_handling))]
#[inline] #[inline]
unsafe fn append_elements(&mut self, other: *const [T]) { unsafe fn append_elements(&mut self, other: *const [T]) {