1
Fork 0

Address review comments

This commit is contained in:
Brennan Vincent 2022-01-11 12:08:46 -07:00
parent 9057a6d66a
commit 65d47347ad
2 changed files with 4 additions and 4 deletions

View file

@ -65,8 +65,8 @@ pub(super) const MIN_LEN: usize = node::MIN_LEN_AFTER_SPLIT;
/// incorrect results, aborts, memory leaks, or non-termination) but will not be undefined
/// behavior.
///
/// Entries in a `BTreeMap` are stored in ascending order according to the [`Ord`] implementation on the key.
/// Thus, iteration methods are guaranteed to produce iterators that yield items in that order.
/// Iterators yielded by functions such as [`BTreeMap::iter`], [`BTreeMap::values`], or [`BTreeMap::keys`]
/// yield their items in order by key, and take worst-case logarithmic and amortized constant time per item yielded.
///
/// [B-Tree]: https://en.wikipedia.org/wiki/B-tree
/// [`Cell`]: core::cell::Cell

View file

@ -27,8 +27,8 @@ use super::Recover;
/// incorrect results, aborts, memory leaks, or non-termination) but will not be undefined
/// behavior.
///
/// Entries in a `BTreeSet` are stored in ascending order according to the [`Ord`] implementation on the key.
/// Thus, iteration methods are guaranteed to produce iterators that yield items in that order.
/// Iterators returned by [`BTreeSet::iter`] yield their items in order,
/// and take worst-case logarithmic and amortized constant time per item yielded.
///
/// [`Ord`]: core::cmp::Ord
/// [`Cell`]: core::cell::Cell