Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
umanwizard committed Jan 11, 2022
1 parent 9057a6d commit 65d4734
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions library/alloc/src/collections/btree/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions library/alloc/src/collections/btree/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65d4734

Please sign in to comment.