Skip to content

Commit 40f9251

Browse files
committed
Fixed typos in btree map docs
1 parent 628be3d commit 40f9251

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: alloc/src/collections/btree/map.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3302,7 +3302,7 @@ impl<'a, K: Ord, V, A: Allocator + Clone> CursorMutKey<'a, K, V, A> {
33023302
Some(kv)
33033303
}
33043304

3305-
/// Removes the precending element from the `BTreeMap`.
3305+
/// Removes the preceding element from the `BTreeMap`.
33063306
///
33073307
/// The element that was removed is returned. The cursor position is
33083308
/// unchanged (after the removed element).
@@ -3408,7 +3408,7 @@ impl<'a, K: Ord, V, A: Allocator + Clone> CursorMut<'a, K, V, A> {
34083408
self.inner.remove_next()
34093409
}
34103410

3411-
/// Removes the precending element from the `BTreeMap`.
3411+
/// Removes the preceding element from the `BTreeMap`.
34123412
///
34133413
/// The element that was removed is returned. The cursor position is
34143414
/// unchanged (after the removed element).

Diff for: alloc/src/collections/btree/set.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2298,7 +2298,7 @@ impl<'a, T: Ord, A: Allocator + Clone> CursorMut<'a, T, A> {
22982298
self.inner.remove_next().map(|(k, _)| k)
22992299
}
23002300

2301-
/// Removes the precending element from the `BTreeSet`.
2301+
/// Removes the preceding element from the `BTreeSet`.
23022302
///
23032303
/// The element that was removed is returned. The cursor position is
23042304
/// unchanged (after the removed element).
@@ -2384,7 +2384,7 @@ impl<'a, T: Ord, A: Allocator + Clone> CursorMutKey<'a, T, A> {
23842384
self.inner.remove_next().map(|(k, _)| k)
23852385
}
23862386

2387-
/// Removes the precending element from the `BTreeSet`.
2387+
/// Removes the preceding element from the `BTreeSet`.
23882388
///
23892389
/// The element that was removed is returned. The cursor position is
23902390
/// unchanged (after the removed element).

0 commit comments

Comments
 (0)