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)