Fixed typos in btree map docs

This commit is contained in:
ranger-ross 2024-08-31 14:50:37 +09:00
parent 24ad26db3b
commit 92f45900bb
No known key found for this signature in database
GPG Key ID: A7D198C212395322
2 changed files with 4 additions and 4 deletions

View File

@ -3302,7 +3302,7 @@ pub fn remove_next(&mut self) -> Option<(K, V)> {
Some(kv) Some(kv)
} }
/// Removes the precending element from the `BTreeMap`. /// Removes the preceding element from the `BTreeMap`.
/// ///
/// The element that was removed is returned. The cursor position is /// The element that was removed is returned. The cursor position is
/// unchanged (after the removed element). /// unchanged (after the removed element).
@ -3408,7 +3408,7 @@ pub fn remove_next(&mut self) -> Option<(K, V)> {
self.inner.remove_next() self.inner.remove_next()
} }
/// Removes the precending element from the `BTreeMap`. /// Removes the preceding element from the `BTreeMap`.
/// ///
/// The element that was removed is returned. The cursor position is /// The element that was removed is returned. The cursor position is
/// unchanged (after the removed element). /// unchanged (after the removed element).

View File

@ -2298,7 +2298,7 @@ pub fn remove_next(&mut self) -> Option<T> {
self.inner.remove_next().map(|(k, _)| k) self.inner.remove_next().map(|(k, _)| k)
} }
/// Removes the precending element from the `BTreeSet`. /// Removes the preceding element from the `BTreeSet`.
/// ///
/// The element that was removed is returned. The cursor position is /// The element that was removed is returned. The cursor position is
/// unchanged (after the removed element). /// unchanged (after the removed element).
@ -2384,7 +2384,7 @@ pub fn remove_next(&mut self) -> Option<T> {
self.inner.remove_next().map(|(k, _)| k) self.inner.remove_next().map(|(k, _)| k)
} }
/// Removes the precending element from the `BTreeSet`. /// Removes the preceding element from the `BTreeSet`.
/// ///
/// The element that was removed is returned. The cursor position is /// The element that was removed is returned. The cursor position is
/// unchanged (after the removed element). /// unchanged (after the removed element).