From 15134249f4134d4d30312fe5f7818cc13e3c0d2c Mon Sep 17 00:00:00 2001 From: dlup <93457935+lupd@users.noreply.github.com> Date: Sat, 26 Mar 2022 02:05:34 -0400 Subject: [PATCH] Remove mention of HashMap not offering iter_mut --- library/core/src/iter/mod.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/library/core/src/iter/mod.rs b/library/core/src/iter/mod.rs index 145c5ee109d7f..22b76ea66ff15 100644 --- a/library/core/src/iter/mod.rs +++ b/library/core/src/iter/mod.rs @@ -243,13 +243,12 @@ //! ``` //! //! While many collections offer `iter()`, not all offer `iter_mut()`. For -//! example, mutating the keys of a [`HashSet`] or [`HashMap`] could -//! put the collection into an inconsistent state if the key hashes change, so -//! these collections only offer `iter()`. +//! example, mutating the keys of a [`HashSet`] could put the collection +//! into an inconsistent state if the key hashes change, so this collection +//! only offers `iter()`. //! //! [`into_iter()`]: IntoIterator::into_iter //! [`HashSet`]: ../../std/collections/struct.HashSet.html -//! [`HashMap`]: ../../std/collections/struct.HashMap.html //! //! # Adapters //!