Skip to content

Commit

Permalink
Fix typo in HashMap::drain docs
Browse files Browse the repository at this point in the history
It's a map, not a vector.
  • Loading branch information
Nilstrieb committed Jun 20, 2022
1 parent 9a0b774 commit 2ead0d7
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 2ead0d7

Please sign in to comment.