From 187ddf30b08c8c38beae0f92b339d6b5fbd437c3 Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sun, 16 Oct 2016 14:40:56 +0200 Subject: [PATCH] Update comment in Vec::dedup_by --- src/libcollections/vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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