mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
[update patch]
wchargin-branch: doc-iter-by-reference wchargin-source: e4069ac9a9d73860467cea74cf3ae1605af37d74
This commit is contained in:
parent
ce3d60476a
commit
6edc90a3e2
@ -243,11 +243,13 @@
|
||||
//! ```
|
||||
//!
|
||||
//! 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>`] or [`HashMap<K, V>`] could
|
||||
//! put the collection into an inconsistent state if the key hashes change, so
|
||||
//! these collections only offer `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