Skip to content

Conversation

@MarijnS95
Copy link
Contributor

By having the ()[] syntax the wrong way around, rustdoc seems to treat the leading (`link`) as text while picking up the [`link`] as an item via "Implied Shortcut Reference Links".

image

Flip that to make the link render as expected again (and remove the unnecessary backticks in the link target).

By having the `()[]` syntax the wrong way around, `rustdoc` seems to treat the leading ``(`link`)`` as text while picking up the ``[`link`]`` as an item via  ["Implied Shortcut Reference Links"](https://rust-lang.github.io/rfcs/1946-intra-rustdoc-links.html#implied-shortcut-reference-links).

Flip that to make the link render as expected again.
@emilio emilio added this pull request to the merge queue Nov 3, 2025
Merged via the queue into rust-lang:main with commit 6bb8512 Nov 3, 2025
51 checks passed
@MarijnS95 MarijnS95 deleted the patch-1 branch November 3, 2025 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants