diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-10-17 23:07:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-17 23:07:53 +0200 |
| commit | b097790182dd0868812897d3fd1be2e6a5083a16 (patch) | |
| tree | 9f940d94c08066c4984dab3892f8b2d19eeab01a | |
| parent | 3ff8ee18aa0865ffcd96beec52ad1f09d9ffd8ab (diff) | |
| parent | 187ddf30b08c8c38beae0f92b339d6b5fbd437c3 (diff) | |
| download | rust-b097790182dd0868812897d3fd1be2e6a5083a16.tar.gz rust-b097790182dd0868812897d3fd1be2e6a5083a16.zip | |
Rollup merge of #37215 - flodiebold:comment-fix, r=sfackler
Update comment in Vec::dedup_by It's a tiny thing, but I came across this comment which previously was in `dedup` and wasn't updated when `dedup_by` was introduced.
| -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 |
