mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
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
This commit is contained in:
commit
1fca19c8ca
@ -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
|
||||
//!
|
||||
|
Loading…
Reference in New Issue
Block a user