Skip to content

Commit a9330dd

Browse files
committed
Docs(lib/coll/hm): Add kv pair to extract_if's first sentence
Make it consistent in this regard with `BTreeMap`'s. Signed-off-by: Paul Mabileau <paul.mabileau@harfanglab.fr>
1 parent 014434e commit a9330dd

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ impl<K, V, S> HashMap<K, V, S> {
648648
Drain { base: self.base.drain() }
649649
}
650650

651-
/// Creates an iterator which uses a closure to determine if an element should be removed.
651+
/// Creates an iterator which uses a closure to determine if an element (key-value pair) should be removed.
652652
///
653653
/// If the closure returns `true`, the element is removed from the map and
654654
/// yielded. If the closure returns `false`, or panics, the element remains

0 commit comments

Comments
 (0)