Skip to content

Commit

Permalink
[update patch]
Browse files Browse the repository at this point in the history
wchargin-branch: doc-iter-by-reference
wchargin-source: e4069ac9a9d73860467cea74cf3ae1605af37d74
  • Loading branch information
wchargin committed Nov 23, 2020
1 parent ce3d604 commit 6edc90a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions library/core/src/iter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
//!
Expand Down

0 comments on commit 6edc90a

Please sign in to comment.