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

Rewrite the first sentence in slice::sort #39314

Merged
merged 1 commit into from Jan 28, 2017
Merged

Rewrite the first sentence in slice::sort #39314

merged 1 commit into from Jan 28, 2017

Conversation

ghost
Copy link

@ghost ghost commented Jan 26, 2017

For every method, the first sentence should consisely explain what it does,
not how. This sentence usually starts with a verb.

It's really weird for sort to be explained in terms of another function,
namely sort_by. There's no need for that because it's obvious how sort
sorts elements: there is T: Ord.

If sort_by_key does not have to explicitly state how it's implemented,
then sort doesn't either.

r? @steveklabnik

For every method, the first sentence should consisely explain what it does,
not how. This sentence usually starts with a verb.

It's really weird for `sort` to be explained in terms of another function,
namely `sort_by`. There's no need for that because it's obvious how `sort`
sorts elements: there is `T: Ord`.

If `sort_by_key` does not have to explicitly state how it's implemented,
then `sort` doesn't either.
@brson
Copy link
Contributor

brson commented Jan 27, 2017

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Jan 27, 2017

📌 Commit f02c9e3 has been approved by brson

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 28, 2017
Rewrite the first sentence in slice::sort

For every method, the first sentence should consisely explain what it does,
not how. This sentence usually starts with a verb.

It's really weird for `sort` to be explained in terms of another function,
namely `sort_by`. There's no need for that because it's obvious how `sort`
sorts elements: there is `T: Ord`.

If `sort_by_key` does not have to explicitly state how it's implemented,
then `sort` doesn't either.

r? @steveklabnik
bors added a commit that referenced this pull request Jan 28, 2017
@bors bors merged commit f02c9e3 into rust-lang:master Jan 28, 2017
@ghost ghost deleted the rewrite-sort-header branch January 28, 2017 10:45
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