Skip to content

Commit 1fca19c

Browse files
committed
Auto merge of rust-lang#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 rust-lang#94755. r? rust-lang/libs `@rustbot` label +A-docs +T-libs
2 parents bc881e8 + 1513424 commit 1fca19c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

library/core/src/iter/mod.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,12 @@
243243
//! ```
244244
//!
245245
//! While many collections offer `iter()`, not all offer `iter_mut()`. For
246-
//! example, mutating the keys of a [`HashSet<T>`] or [`HashMap<K, V>`] could
247-
//! put the collection into an inconsistent state if the key hashes change, so
248-
//! these collections only offer `iter()`.
246+
//! example, mutating the keys of a [`HashSet<T>`] could put the collection
247+
//! into an inconsistent state if the key hashes change, so this collection
248+
//! only offers `iter()`.
249249
//!
250250
//! [`into_iter()`]: IntoIterator::into_iter
251251
//! [`HashSet<T>`]: ../../std/collections/struct.HashSet.html
252-
//! [`HashMap<K, V>`]: ../../std/collections/struct.HashMap.html
253252
//!
254253
//! # Adapters
255254
//!

0 commit comments

Comments
 (0)