Skip to content

Commit 8ba6d9f

Browse files
committed
Simplify language around DOC_SUSPICIOUS_FOOTNOTES
1 parent eea151d commit 8ba6d9f

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

clippy_lints/src/doc/mod.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -611,18 +611,12 @@ declare_clippy_lint! {
611611

612612
declare_clippy_lint! {
613613
/// ### What it does
614-
/// Detects syntax that looks like a footnote reference,
615-
/// because it matches the regexp `\[\^[0-9]+\]`,
616-
/// but has no referent.
614+
/// Detects syntax that looks like a footnote reference.
617615
///
618616
/// Rustdoc footnotes are compatible with GitHub-Flavored Markdown (GFM).
619-
/// They are not parsed as footnotes unless a definition also exists,
620-
/// so they usually "do what you mean" if you want to write the text
621-
/// literally—usually in a regular expression.
622-
///
623-
/// However, footnote references are usually numbers, and regex
624-
/// negative character classes usually contain other characters, so this
625-
/// lint can make a practical guess for which is meant.
617+
/// GFM does not parse a footnote reference unless its definition also
618+
/// exists. This lint checks for footnote references with missing
619+
/// definitions, unless it thinks you're writing a regex.
626620
///
627621
/// ### Why is this bad?
628622
/// This probably means that a footnote was meant to exist,

0 commit comments

Comments
 (0)