-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix documentation for Vec::dedup_by. #40536
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One tiny nit. Thank you!
src/libcollections/vec.rs
Outdated
@@ -838,7 +838,11 @@ impl<T> Vec<T> { | |||
self.dedup_by(|a, b| key(a) == key(b)) | |||
} | |||
|
|||
/// Removes consecutive elements in the vector that resolve to the same key. | |||
/// Removes consecutive elements in the vector that compare equal according to a predicate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove that compare equal
? It's a bit awkward here, and this is the summary line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
The previous docstring was copied from dedup_by_key.
fb45ee3
to
e66b3a2
Compare
@bors: r+ rollup thanks! |
📌 Commit e66b3a2 has been approved by |
…, r=steveklabnik Fix documentation for Vec::dedup_by. The previous docstring was copied from dedup_by_key.
…, r=steveklabnik Fix documentation for Vec::dedup_by. The previous docstring was copied from dedup_by_key.
…, r=steveklabnik Fix documentation for Vec::dedup_by. The previous docstring was copied from dedup_by_key.
…, r=steveklabnik Fix documentation for Vec::dedup_by. The previous docstring was copied from dedup_by_key.
…, r=steveklabnik Fix documentation for Vec::dedup_by. The previous docstring was copied from dedup_by_key.
The previous docstring was copied from dedup_by_key.