about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Mabileau <paul.mabileau@harfanglab.fr>2025-05-17 02:49:57 +0200
committerPaul Mabileau <paul.mabileau@harfanglab.fr>2025-05-17 02:49:57 +0200
commita9330dd0e9fbc1698b69ac82e138d9dcef31bc33 (patch)
tree4eb6fe434d51bf48289880e5ae713ce291dcac02
parent014434e96f4f42e06b6c2dfc00110209b121040e (diff)
downloadrust-a9330dd0e9fbc1698b69ac82e138d9dcef31bc33.tar.gz
rust-a9330dd0e9fbc1698b69ac82e138d9dcef31bc33.zip
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>
-rw-r--r--library/std/src/collections/hash/map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/collections/hash/map.rs b/library/std/src/collections/hash/map.rs
index 5e053d36448..edbdd041145 100644
--- a/library/std/src/collections/hash/map.rs
+++ b/library/std/src/collections/hash/map.rs
@@ -648,7 +648,7 @@ impl<K, V, S> HashMap<K, V, S> {
         Drain { base: self.base.drain() }
     }
 
-    /// Creates an iterator which uses a closure to determine if an element should be removed.
+    /// Creates an iterator which uses a closure to determine if an element (key-value pair) should be removed.
     ///
     /// If the closure returns `true`, the element is removed from the map and
     /// yielded. If the closure returns `false`, or panics, the element remains