about summary refs log tree commit diff
path: root/library/alloc/src/collections
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2022-05-30 17:56:35 -0700
committerGitHub <noreply@github.com>2022-05-30 17:56:35 -0700
commite6b1003c950221a4afac33ecd64877c3ca56ddf8 (patch)
treec5603009daa670e442460126ad3b2e58fd8fd36e /library/alloc/src/collections
parent67aca498c6b17b8888f17c5035e2c6f257e32c5c (diff)
downloadrust-e6b1003c950221a4afac33ecd64877c3ca56ddf8.tar.gz
rust-e6b1003c950221a4afac33ecd64877c3ca56ddf8.zip
BTreeSet->BTreeMap (fix copy/paste mistake in documentation)
Co-authored-by: lcnr <rust@lcnr.de>
Diffstat (limited to 'library/alloc/src/collections')
-rw-r--r--library/alloc/src/collections/btree/map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/collections/btree/map.rs b/library/alloc/src/collections/btree/map.rs
index 28b44e3acb9..6027991a0ed 100644
--- a/library/alloc/src/collections/btree/map.rs
+++ b/library/alloc/src/collections/btree/map.rs
@@ -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