Skip to content

Fix documentation for Vec::dedup_by. #40536

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Mar 17, 2017

Conversation

kevinmehall
Copy link
Contributor

The previous docstring was copied from dedup_by_key.

Copy link
Member

@steveklabnik steveklabnik left a 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!

@@ -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.
Copy link
Member

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.

Copy link
Contributor Author

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.
@kevinmehall kevinmehall force-pushed the dedup_docs_for_dedup_by branch from fb45ee3 to e66b3a2 Compare March 15, 2017 14:57
@steveklabnik
Copy link
Member

@bors: r+ rollup

thanks!

@bors
Copy link
Collaborator

bors commented Mar 15, 2017

📌 Commit e66b3a2 has been approved by steveklabnik

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Mar 17, 2017
…, r=steveklabnik

Fix documentation for Vec::dedup_by.

The previous docstring was copied from dedup_by_key.
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Mar 17, 2017
…, r=steveklabnik

Fix documentation for Vec::dedup_by.

The previous docstring was copied from dedup_by_key.
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Mar 17, 2017
…, r=steveklabnik

Fix documentation for Vec::dedup_by.

The previous docstring was copied from dedup_by_key.
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Mar 17, 2017
…, r=steveklabnik

Fix documentation for Vec::dedup_by.

The previous docstring was copied from dedup_by_key.
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Mar 17, 2017
…, r=steveklabnik

Fix documentation for Vec::dedup_by.

The previous docstring was copied from dedup_by_key.
bors added a commit that referenced this pull request Mar 17, 2017
@bors bors merged commit e66b3a2 into rust-lang:master Mar 17, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants