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:
commit
9d23c320e4
@ -986,7 +986,7 @@ pub fn retain<F>(&mut self, mut f: F)
|
||||
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
|
||||
///
|
||||
|
@ -895,7 +895,7 @@ pub fn retain<F>(&mut self, mut f: F)
|
||||
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
|
||||
///
|
||||
|
@ -1763,7 +1763,7 @@ pub fn pop(&mut self) -> Option<T> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Moves all the elements of `other` into `Self`, leaving `other` empty.
|
||||
/// Moves all the elements of `other` into `self`, leaving `other` empty.
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
@ -1788,7 +1788,7 @@ pub fn append(&mut self, other: &mut Self) {
|
||||
}
|
||||
}
|
||||
|
||||
/// 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]) {
|
||||
|
Loading…
Reference in New Issue
Block a user