]> git.lizzy.rs Git - rust.git/commitdiff
BTreeSet->BTreeMap (fix copy/paste mistake in documentation)
authorDavid Tolnay <dtolnay@gmail.com>
Tue, 31 May 2022 00:56:35 +0000 (17:56 -0700)
committerGitHub <noreply@github.com>
Tue, 31 May 2022 00:56:35 +0000 (17:56 -0700)
Co-authored-by: lcnr <rust@lcnr.de>
library/alloc/src/collections/btree/map.rs

index 28b44e3acb9da31917348d5a4467a8d0b024e88e..6027991a0ed2fbb9b1e518ba7e937e6fde87ddae 100644 (file)
@@ -65,7 +65,7 @@
 /// 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