Skip to content
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

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

@bors: r+ rollup

thanks!

@bors
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants