-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Simplify iter sources doc and links #76816
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
r? @dtolnay (rust_highfive has picked a reviewer for you, use r? to override) |
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.
Same nits for the other changes.
library/core/src/iter/sources.rs
Outdated
@@ -102,10 +101,8 @@ pub fn repeat<T: Clone>(elt: T) -> Repeat<T> { | |||
/// An iterator that repeats elements of type `A` endlessly by | |||
/// applying the provided closure `F: FnMut() -> A`. | |||
/// | |||
/// This `struct` is created by the [`repeat_with`] function. | |||
/// This `struct` is created by [`repeat_with`]. |
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.
/// This `struct` is created by [`repeat_with`]. | |
/// This `struct` is created by [`repeat_with()`]. |
and same newline nit as above
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.
I think I prefer the original wording before this PR. "created by once
" is less clear to me than "created by the once
function" or "created by iter::once
".
@@ -102,10 +101,8 @@ pub fn repeat<T: Clone>(elt: T) -> Repeat<T> { | |||
/// An iterator that repeats elements of type `A` endlessly by | |||
/// applying the provided closure `F: FnMut() -> A`. | |||
/// | |||
/// This `struct` is created by the [`repeat_with`] function. | |||
/// This `struct` is created by [`iter::repeat_with`]. |
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.
All these links will be broken, you need to add reference links:
[`iter::repeat_with`]: repeat_with
@poliorcetics is working on this with the same file as this, I believe I should let him continue. |
No description provided.