diff options
| author | Florian Diebold <flodiebold@gmail.com> | 2016-10-16 14:40:56 +0200 |
|---|---|---|
| committer | Florian Diebold <flodiebold@gmail.com> | 2016-10-16 14:41:01 +0200 |
| commit | 187ddf30b08c8c38beae0f92b339d6b5fbd437c3 (patch) | |
| tree | 55b7eff5c53cdfcd454e9aae1b0884b1e821ea8d | |
| parent | 6dc035ed911672c6a1f7afc9eed15fb08e574e5b (diff) | |
| download | rust-187ddf30b08c8c38beae0f92b339d6b5fbd437c3.tar.gz rust-187ddf30b08c8c38beae0f92b339d6b5fbd437c3.zip | |
Update comment in Vec::dedup_by
| -rw-r--r-- | src/libcollections/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 52fc8b9dd70..f3d78c20a4d 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -822,7 +822,7 @@ impl<T> Vec<T> { pub fn dedup_by<F>(&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 |
