diff options
| author | bors <bors@rust-lang.org> | 2022-03-26 12:01:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-03-26 12:01:58 +0000 |
| commit | 1fca19c8ca4ae5e71e8b17a82c3acfeb78c48891 (patch) | |
| tree | 0e815cac95559da3e4bb8499cd77e2e8c23d4421 | |
| parent | bc881e83d1cced71046e844fa55c0b0e9f9af382 (diff) | |
| parent | 15134249f4134d4d30312fe5f7818cc13e3c0d2c (diff) | |
| download | rust-1fca19c8ca4ae5e71e8b17a82c3acfeb78c48891.tar.gz rust-1fca19c8ca4ae5e71e8b17a82c3acfeb78c48891.zip | |
Auto merge of #95326 - lupd:std-iter-doc, r=Dylan-DPC
Remove mention of `HashMap<K, V>` not offering `iter_mut` HashMap<K, V> does offer iter_mut. Fixes #94755. r? rust-lang/libs `@rustbot` label +A-docs +T-libs
| -rw-r--r-- | library/core/src/iter/mod.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/library/core/src/iter/mod.rs b/library/core/src/iter/mod.rs index 145c5ee109d..22b76ea66ff 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<T>`] or [`HashMap<K, V>`] 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<T>`] 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<T>`]: ../../std/collections/struct.HashSet.html -//! [`HashMap<K, V>`]: ../../std/collections/struct.HashMap.html //! //! # Adapters //! |
