RS.CLIPPY.DOC_LINK_CODE
Link with code back-to-back with other code
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: doc_link_code. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for links with code directly adjacent to code text:
[`MyItem`]`<`[`u32`]`>`.
Why is this bad?
It can be written more simply using HTML-style <code> tags.
Example
//! [`first`](x)`second`
Use instead:
//! <code>[first](x)second</code>