-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Describe the Iterator enumerate() method more clearly. #24440
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
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
/// iterator plus the current index of iteration. | ||
/// Creates an iterator that yields pairs `(i, val)` where `i` is the | ||
/// current index of iteration and `val` is the value returned by the | ||
/// iterator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/iterator/iterator./
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh, oops! Fixing...
Thanks! Could you squash the commits together as well? |
d78a972
to
2b86f1f
Compare
Done |
…richton I found that the current description of `enumerate()` doesn't actually tell you what, specifically, the method does, and you have to look at the example to figure it out. Here's a description that I think is better.
I found that the current description of
enumerate()
doesn't actually tell you what, specifically, the method does, and you have to look at the example to figure it out. Here's a description that I think is better.