We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6dc035e commit 187ddf3Copy full SHA for 187ddf3
src/libcollections/vec.rs
@@ -822,7 +822,7 @@ impl<T> Vec<T> {
822
pub fn dedup_by<F>(&mut self, mut same_bucket: F) where F: FnMut(&mut T, &mut T) -> bool {
823
unsafe {
824
// Although we have a mutable reference to `self`, we cannot make
825
- // *arbitrary* changes. The `PartialEq` comparisons could panic, so we
+ // *arbitrary* changes. The `same_bucket` calls could panic, so we
826
// must ensure that the vector is in a valid state at all time.
827
//
828
// The way that we handle this is by using swaps; we iterate
0 commit comments