Skip to content

Commit 66dbc3f

Browse files
authored
Rollup merge of #98281 - Nilstrieb:map-drain-typo, r=JohnTitor
Fix typo in `HashMap::drain` docs It's a map, not a vector. Fixes #98275.
2 parents 1888499 + 2ead0d7 commit 66dbc3f

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)