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

2 files changed

lines changed

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).

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).