Skip to content

Commit 249eb1c

Browse files
committed
fix typo in btree/vec doc: Self -> self
1 parent b70cc64 commit 249eb1c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

library/alloc/src/collections/btree/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ impl<K, V> BTreeMap<K, V> {
979979
self.drain_filter(|k, v| !f(k, v));
980980
}
981981

982-
/// Moves all elements from `other` into `Self`, leaving `other` empty.
982+
/// Moves all elements from `other` into `self`, leaving `other` empty.
983983
///
984984
/// # Examples
985985
///

library/alloc/src/collections/btree/set.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ impl<T> BTreeSet<T> {
892892
self.drain_filter(|v| !f(v));
893893
}
894894

895-
/// Moves all elements from `other` into `Self`, leaving `other` empty.
895+
/// Moves all elements from `other` into `self`, leaving `other` empty.
896896
///
897897
/// # Examples
898898
///

library/alloc/src/vec/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,7 @@ impl<T, A: Allocator> Vec<T, A> {
17551755
}
17561756
}
17571757

1758-
/// Moves all the elements of `other` into `Self`, leaving `other` empty.
1758+
/// Moves all the elements of `other` into `self`, leaving `other` empty.
17591759
///
17601760
/// # Panics
17611761
///
@@ -1780,7 +1780,7 @@ impl<T, A: Allocator> Vec<T, A> {
17801780
}
17811781
}
17821782

1783-
/// Appends elements to `Self` from other buffer.
1783+
/// Appends elements to `self` from other buffer.
17841784
#[cfg(not(no_global_oom_handling))]
17851785
#[inline]
17861786
unsafe fn append_elements(&mut self, other: *const [T]) {

0 commit comments

Comments
 (0)