From bd537764654fc31a454fbbdfe502a06e3c1efe3f Mon Sep 17 00:00:00 2001 From: Kevin Guthrie Date: Thu, 15 Aug 2024 13:39:25 -0400 Subject: [PATCH] chore: fix typo in `retain_force` method doc --- src/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map.rs b/src/map.rs index 6a652cf..f0eb44b 100644 --- a/src/map.rs +++ b/src/map.rs @@ -2686,7 +2686,7 @@ where /// /// In other words, remove all pairs `(k, v)` such that `f(&k,&v)` returns `false`. /// - /// This method always deletes any key/value pair that `f` returns `false` for, even if if the + /// This method always deletes any key/value pair that `f` returns `false` for, even if the /// value is updated concurrently. If you do not want that behavior, use [`HashMap::retain`]. /// /// # Examples