File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -611,18 +611,12 @@ declare_clippy_lint! {
611
611
612
612
declare_clippy_lint ! {
613
613
/// ### 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.
617
615
///
618
616
/// 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.
626
620
///
627
621
/// ### Why is this bad?
628
622
/// This probably means that a footnote was meant to exist,
You can’t perform that action at this time.
0 commit comments