Skip to content

Commit

Permalink
BTreeSet->BTreeMap (fix copy/paste mistake in documentation)
Browse files Browse the repository at this point in the history
Co-authored-by: lcnr <rust@lcnr.de>
  • Loading branch information
dtolnay and lcnr authored May 31, 2022
1 parent 67aca49 commit e6b1003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/collections/btree/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub(super) const MIN_LEN: usize = node::MIN_LEN_AFTER_SPLIT;
/// any other key, as determined by the [`Ord`] trait, changes while it is in the map. This is
/// normally only possible through [`Cell`], [`RefCell`], global state, I/O, or unsafe code.
/// The behavior resulting from such a logic error is not specified, but will be encapsulated to the
/// `BTreeSet` that observed the logic error and not result in undefined behavior. This could
/// `BTreeMap` that observed the logic error and not result in undefined behavior. This could
/// include panics, incorrect results, aborts, memory leaks, and non-termination.
///
/// Iterators obtained from functions such as [`BTreeMap::iter`], [`BTreeMap::values`], or
Expand Down

0 comments on commit e6b1003

Please sign in to comment.