mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
fix typo in btree/vec doc: Self -> self
This commit is contained in:
@@ -979,7 +979,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
|
||||
///
|
||||
|
||||
@@ -892,7 +892,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
|
||||
///
|
||||
|
||||
@@ -1755,7 +1755,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
|
||||
///
|
||||
@@ -1780,7 +1780,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]) {
|
||||
|
||||
Reference in New Issue
Block a user