diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 52fc8b9dd7049..f3d78c20a4d6b 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -822,7 +822,7 @@ impl Vec { pub fn dedup_by(&mut self, mut same_bucket: F) where F: FnMut(&mut T, &mut T) -> bool { unsafe { // Although we have a mutable reference to `self`, we cannot make - // *arbitrary* changes. The `PartialEq` comparisons could panic, so we + // *arbitrary* changes. The `same_bucket` calls could panic, so we // must ensure that the vector is in a valid state at all time. // // The way that we handle this is by using swaps; we iterate