-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Improve documentation for Iterator's methods #29311
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Hmm, the diff is too big to leave inline comments. |
@apasel422 oh no :( |
https://github.com/rust-lang/rust/pull/29311.patch is the raw diff, waiting to be opened in your favorite editor 😄 |
21d8795
to
59f9a56
Compare
Hm, @steveklabnik could you split up this commit perhaps for now to review? Without that there's basically no way to easily review this... |
59f9a56
to
0b8026f
Compare
@alexcrichton split it up into a bunch of smaller ones. github still shows it as one thing due to it all being in one file, it looks like :/ |
A common problem with most of the descriptions is use of word “closure” to mean “anything that satisfies That being said, I have no idea how to word it better so it is as concise and more correct. |
@nagisa yeah, it takes a closure, but you can convert a function pointer to a closure. |
59dada7
to
9331766
Compare
Okay, fixed up @nagisa 's issues, and re-broke them out. |
Oh, and this PR is part of #29360 |
Whew, awesome patch @steveklabnik! Just some minor nits here and there, but otherwise r=me with those addressed. |
9331766
to
7b30676
Compare
@bors: r=alexcrichton |
📌 Commit 7b30676 has been approved by |
7b30676
to
d91785a
Compare
This adds lots of examples, clarifies text, and just generally improves the documentation for Iterator.
@bors: r=alexcrichton (I forgot to re-run the tests since i modified some of them, whoops! all pass now) |
📌 Commit d91785a has been approved by |
This cleans up descriptions, adds more examples, and increases consistency between similar methods.
This cleans up descriptions, adds more examples, and increases
consistency between similar methods.