Skip to content

Commit 187ddf3

Browse files
committed
Update comment in Vec::dedup_by
1 parent 6dc035e commit 187ddf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ impl<T> Vec<T> {
822822
pub fn dedup_by<F>(&mut self, mut same_bucket: F) where F: FnMut(&mut T, &mut T) -> bool {
823823
unsafe {
824824
// Although we have a mutable reference to `self`, we cannot make
825-
// *arbitrary* changes. The `PartialEq` comparisons could panic, so we
825+
// *arbitrary* changes. The `same_bucket` calls could panic, so we
826826
// must ensure that the vector is in a valid state at all time.
827827
//
828828
// The way that we handle this is by using swaps; we iterate

0 commit comments

Comments
 (0)