Skip to content

Commit

Permalink
Rollup merge of #98281 - Nilstrieb:map-drain-typo, r=JohnTitor
Browse files Browse the repository at this point in the history
Fix typo in `HashMap::drain` docs

It's a map, not a vector.

Fixes #98275.
  • Loading branch information
JohnTitor authored Jun 20, 2022
2 parents 1888499 + 2ead0d7 commit 66dbc3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/collections/hash/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ impl<K, V, S> HashMap<K, V, S> {
///
/// If the returned iterator is dropped before being fully consumed, it
/// drops the remaining key-value pairs. The returned iterator keeps a
/// mutable borrow on the vector to optimize its implementation.
/// mutable borrow on the map to optimize its implementation.
///
/// # Examples
///
Expand Down

0 comments on commit 66dbc3f

Please sign in to comment.