-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Use intra-doc links in core/src/iter when possible #76867
Conversation
@poliorcetics I have a patch for sources too #76816 but I was inclined to move them to |
This comment has been minimized.
This comment has been minimized.
@bors r+ rollup It would be nice to move from 'the function f' to 'f()' at some point, but that doesn't need to block this PR. |
📌 Commit 08b85a6 has been approved by |
…=jyn514 Use intra-doc links in core/src/iter when possible Helps with rust-lang#75080. I also updated lots of links to use `fn()` instead of `fn` when possible. @rustbot modify labels: T-doc A-intra-doc-links r? @jyn514
…=jyn514 Use intra-doc links in core/src/iter when possible Helps with rust-lang#75080. I also updated lots of links to use `fn()` instead of `fn` when possible. @rustbot modify labels: T-doc A-intra-doc-links r? @jyn514
@@ -393,10 +379,8 @@ pub fn once<T>(value: T) -> Once<T> { | |||
/// An iterator that yields a single element of type `A` by | |||
/// applying the provided closure `F: FnOnce() -> A`. | |||
/// | |||
/// This `struct` is created by the [`once_with`] function. | |||
/// This `struct` is created by the [`once_with()`] function. |
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 the [`once_with()`] function. | |
/// This `struct` is created by [`iter::once_with()`]. |
Based on #76816 comments
…=jyn514 Use intra-doc links in core/src/iter when possible Helps with rust-lang#75080. I also updated lots of links to use `fn()` instead of `fn` when possible. @rustbot modify labels: T-doc A-intra-doc-links r? @jyn514
Rollup of 13 pull requests Successful merges: - rust-lang#76135 (Stabilize some Option methods as const) - rust-lang#76628 (Add sample defaults for config.toml ) - rust-lang#76846 (Avoiding unnecesary allocations at rustc_errors) - rust-lang#76867 (Use intra-doc links in core/src/iter when possible) - rust-lang#76868 (Finish moving to intra doc links for std::sync) - rust-lang#76872 (Remove DeclareMethods) - rust-lang#76936 (Add non-`unsafe` `.get_mut()` for `Unsafecell`) - rust-lang#76958 (Replace manual as_nanos and as_secs_f64 reimplementations) - rust-lang#76959 (Replace write_fmt with write!) - rust-lang#76961 (Add test for issue rust-lang#34634) - rust-lang#76962 (Use const_cstr macro in consts.rs) - rust-lang#76963 (Remove unused static_assert macro) - rust-lang#77000 (update Miri) Failed merges: r? `@ghost`
Helps with #75080.
I also updated lots of links to use
fn()
instead offn
when possible.@rustbot modify labels: T-doc A-intra-doc-links
r? @jyn514