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

Co-authored-by: Joe ST <joe@fbstj.net>
This commit is contained in:
Amanieu d'Antras 2023-11-23 12:37:20 +00:00 committed by GitHub
parent 8ee9693177
commit 166e348564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2717,7 +2717,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
///
/// A `Cursor` is like an iterator, except that it can freely seek back-and-forth.
///
/// Cursors always point to a gao between two elements in the map, and can
/// Cursors always point to a gap between two elements in the map, and can
/// operate on the two immediately adjacent elements.
///
/// A `Cursor` is created with the [`BTreeMap::lower_bound`] and [`BTreeMap::upper_bound`] methods.