From e07eb034d1be93ed70ab3daf85c27e61ee8401c0 Mon Sep 17 00:00:00 2001 From: Akira Date: Sat, 13 Dec 2025 08:20:07 -0600 Subject: [PATCH] Fix retain comment to make more sense --- src/vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vec.rs b/src/vec.rs index c28facf..130c6ab 100644 --- a/src/vec.rs +++ b/src/vec.rs @@ -378,7 +378,7 @@ impl EcoVec { /// /// Clones the vector if its reference count is larger than 1. /// - /// Note that this clones the vector even if `f` always returns `false`. To + /// Note that this clones the vector even if `f` always returns `true`. To /// prevent that, you can first iterate over the vector yourself and then /// only call `retain` if your condition is `false` for some element. pub fn retain(&mut self, mut f: F)