Skip to content

Rewrite paragraph in 'match' to be more concise and readable. Start #30502

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

Merged
merged 4 commits into from
Dec 30, 2015
Merged

Rewrite paragraph in 'match' to be more concise and readable. Start #30502

merged 4 commits into from
Dec 30, 2015

Conversation

flukejones
Copy link
Contributor

Rewrite of a paragraph in in the match section.

Correcting use of ':' in sentences.

The colon : should be used only when the sentence preceeding it is a
complete sentence. If this is not the case, then a ; should be used;
this denotes that the following fragment is a part of the previous
fragment.

Examples of ; use:

I got a new bike; it has two wheels. (Similar to I got a new bike, it has two wheels)
The ice cream truck has great flavours; blueberry, blackberry, berryberry.

Examples of : use:

Writing a complete sentence:

  • with a list under it
  • You can join two sentences with it: Much like this.

r? @steveklabnik

correcting use of ':' in sentences.
The colon `:` should be used only when the sentence preceeding it is a
complete sentence. If this is not the case, then a `;` should be used;
this denotes that the following fragment is a part of the previous
fragment.
@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@apasel422
Copy link
Contributor

The ice cream truck has great flavours; blueberry, blackberry, berryberry.

This is not standard American English usage of the semicolon, which separates independent clauses.

@@ -9,7 +9,7 @@ document your project.
The Rust distribution includes a tool, `rustdoc`, that generates documentation.
`rustdoc` is also used by Cargo through `cargo doc`.

Documentation can be generated in two ways: from source code, and from
Documentation can be generated in two ways; from source code, and from
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I disagree with this change, as the text preceding the colon introduces the text afterward, which cannot stand alone as a sentence.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, Me too. First of all, this is an independent clause, and is very commonly used like this, with a list.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, agreed. 👍 I read that one incorrectly.

@steveklabnik
Copy link
Member

Thank you for caring about grammar, @Luke-Nukem ! I'm not sure I agree with all of these changes, though it is late in the evening. Some of them are certainly improvements though.

@flukejones
Copy link
Contributor Author

And thank you, @steveklabnik for writing the book in the first place; it is a commendable effort. 👍

@steveklabnik
Copy link
Member

@bors: r+ rollup

@bors
Copy link
Collaborator

bors commented Dec 30, 2015

📌 Commit 1522350 has been approved by steveklabnik

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Dec 30, 2015
Rewrite of a paragraph in in the `match` section.

The colon `:` should be used only when the sentence preceeding it is a
complete sentence. If this is not the case, then a `;` should be used;
this denotes that the following fragment is a part of the previous
fragment.

I got a new bike; it has two wheels. (Similar to I got a new bike, it has two wheels)
The ice cream truck has great flavours; blueberry, blackberry, berryberry.

Writing a complete sentence:
- with a list under it
- You can join two sentences with it: Much like this.

r? @steveklabnik
bors added a commit that referenced this pull request Dec 30, 2015
@bors bors merged commit 1522350 into rust-lang:master Dec 30, 2015
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.

5 participants