Skip to content

Commit e6b1003

Browse files
dtolnaylcnr
andauthored
BTreeSet->BTreeMap (fix copy/paste mistake in documentation)
Co-authored-by: lcnr <[email protected]>
1 parent 67aca49 commit e6b1003

File tree

1 file changed

+1
-1
lines changed
  • library/alloc/src/collections/btree

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub(super) const MIN_LEN: usize = node::MIN_LEN_AFTER_SPLIT;
6565
/// any other key, as determined by the [`Ord`] trait, changes while it is in the map. This is
6666
/// normally only possible through [`Cell`], [`RefCell`], global state, I/O, or unsafe code.
6767
/// The behavior resulting from such a logic error is not specified, but will be encapsulated to the
68-
/// `BTreeSet` that observed the logic error and not result in undefined behavior. This could
68+
/// `BTreeMap` that observed the logic error and not result in undefined behavior. This could
6969
/// include panics, incorrect results, aborts, memory leaks, and non-termination.
7070
///
7171
/// Iterators obtained from functions such as [`BTreeMap::iter`], [`BTreeMap::values`], or

0 commit comments

Comments
 (0)