RS.CLIPPY.DOC_LINK_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 &lt;code&gt; tags.

Example

//! [`first`](x)`second`

Use instead:

//! &lt;code&gt;[first](x)second&lt;/code&gt;