Skip to content

Guide: Iterators, Macros and Unsafe wording fixes #18355

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 2 commits into from
Nov 4, 2014

Conversation

chastell
Copy link
Contributor

Some more proposed wording fixes for the Guide, this time for the Iterators, Macros and Unsafe chapters. I’m not a native speaker, but this does read better to me, so please do review this critically.

@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 @huonw (or someone else) soon.

@@ -4418,7 +4418,7 @@ see why consumers matter.

As we've said before, an iterator is something that we can call the `.next()`
method on repeatedly, and it gives us a sequence of things. Because you need
to call the method, this means that iterators are **lazy**. This code, for
to call the method, this means that iterators can be **lazy** and don't need to generate all of the values upfront. This code, for
Copy link
Member

Choose a reason for hiding this comment

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

iterators are always lazy. but elaborating on what that means is good. can you wrap this line, please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted to ‘are’ and rewrapped. :)

This is probably a bad place to ask, so I’ll do it anyway: what’s a good (re)wrapping policy? In general I try to make the least diff noise, but for that it would help if the line breaks were at logical places, so I rewrapped the whole paragraph at sentence breaks. I read an interesting post on this recently, but obviously can’t find the URL at the moment. Still not sure what’s a good approach.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IT’S A TOPIC NEAR AND DEAR TO MY HEART

@steveklabnik
Copy link
Member

r=me after the comment is fixed :)

@huonw huonw assigned steveklabnik and unassigned huonw Oct 29, 2014
@chastell
Copy link
Contributor Author

chastell commented Nov 3, 2014

(I fixed the comment and rewrapped as per request.)

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Nov 4, 2014
@bors bors merged commit 1bfe6a2 into rust-lang:master Nov 4, 2014
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.

6 participants