Fixed typos in btree map docs · patricklam/verify-rust-std@40f9251 (original) (raw)

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -3302,7 +3302,7 @@ impl<'a, K: Ord, V, A: Allocator + Clone> CursorMutKey<'a, K, V, A> {
3302 3302 Some(kv)
3303 3303 }
3304 3304
3305 -/// Removes the precending element from the `BTreeMap`.
3305 +/// Removes the preceding element from the `BTreeMap`.
3306 3306 ///
3307 3307 /// The element that was removed is returned. The cursor position is
3308 3308 /// unchanged (after the removed element).
@@ -3408,7 +3408,7 @@ impl<'a, K: Ord, V, A: Allocator + Clone> CursorMut<'a, K, V, A> {
3408 3408 self.inner.remove_next()
3409 3409 }
3410 3410
3411 -/// Removes the precending element from the `BTreeMap`.
3411 +/// Removes the preceding element from the `BTreeMap`.
3412 3412 ///
3413 3413 /// The element that was removed is returned. The cursor position is
3414 3414 /// unchanged (after the removed element).
Original file line number Diff line number Diff line change
@@ -2298,7 +2298,7 @@ impl<'a, T: Ord, A: Allocator + Clone> CursorMut<'a, T, A> {
2298 2298 self.inner.remove_next().map(|(k, _)
2299 2299 }
2300 2300
2301 -/// Removes the precending element from the `BTreeSet`.
2301 +/// Removes the preceding element from the `BTreeSet`.
2302 2302 ///
2303 2303 /// The element that was removed is returned. The cursor position is
2304 2304 /// unchanged (after the removed element).
@@ -2384,7 +2384,7 @@ impl<'a, T: Ord, A: Allocator + Clone> CursorMutKey<'a, T, A> {
2384 2384 self.inner.remove_next().map(|(k, _)
2385 2385 }
2386 2386
2387 -/// Removes the precending element from the `BTreeSet`.
2387 +/// Removes the preceding element from the `BTreeSet`.
2388 2388 ///
2389 2389 /// The element that was removed is returned. The cursor position is
2390 2390 /// unchanged (after the removed element).