Skip to content

Commit 2ead0d7

Browse files
committed
Fix typo in HashMap::drain docs
It's a map, not a vector.
1 parent 9a0b774 commit 2ead0d7

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/collections/hash

1 file changed

+1
-1
lines changed

library/std/src/collections/hash/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ impl<K, V, S> HashMap<K, V, S> {
588588
///
589589
/// If the returned iterator is dropped before being fully consumed, it
590590
/// drops the remaining key-value pairs. The returned iterator keeps a
591-
/// mutable borrow on the vector to optimize its implementation.
591+
/// mutable borrow on the map to optimize its implementation.
592592
///
593593
/// # Examples
594594
///

0 commit comments

Comments
 (0)