-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Convert core/src/str/pattern.rs to Intra-doc links #75782
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @jyn514 😇 |
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.
Looks great! I love all the new links :D
library/core/src/str/pattern.rs
Outdated
@@ -327,8 +326,8 @@ pub unsafe trait ReverseSearcher<'a>: Searcher<'a> { | |||
/// | |||
/// # Examples | |||
/// | |||
/// `char::Searcher` is a `DoubleEndedSearcher` because searching for a | |||
/// `char` only requires looking at one at a time, which behaves the same | |||
/// [`char::Searcher`] is a `DoubleEndedSearcher` because searching for a |
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.
/// [`char::Searcher`] is a `DoubleEndedSearcher` because searching for a | |
/// [`char::Searcher`] is a [`DoubleEndedSearcher`] because searching for a |
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.
We are already on DoubleEndedSearcher
, so that wouldn't make much sense to add a link to the item we're documenting. ;)
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.
Oops, this is what happens when you only read the links and not the surrounding code 😆
7427536
to
385a1b2
Compare
@bors r+ rollup |
📌 Commit 385a1b2 has been approved by |
Rollup of 12 pull requests Successful merges: - rust-lang#75705 (Move to intra-doc links for /library/core/src/intrinsics.rs) - rust-lang#75711 (Split `astconv.rs` into its own submodule) - rust-lang#75718 (Don't count variants/fields/consts/associated types in doc-coverage doc examples) - rust-lang#75725 (Use intra-doc-links in `alloc`) - rust-lang#75745 (Remove duplication in `fold_item`) - rust-lang#75753 (Another motivation for CFG: return-oriented programming) - rust-lang#75769 (Minor, remove double nesting of a test module) - rust-lang#75771 (Extend normalization in const-eval-query-stack test) - rust-lang#75781 (More inline asm register name fixups for LLVM) - rust-lang#75782 (Convert core/src/str/pattern.rs to Intra-doc links) - rust-lang#75787 (Use intra-doc-links in `core::ops::*`) - rust-lang#75788 (MIR call terminator represents diverging calls too) Failed merges: - rust-lang#75773 (Introduce expect snapshot testing library into rustc) r? @ghost
Part of #75080.