File tree 3 files changed +44
-0
lines changed 3 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ // This test checks that words starting with capital letters and ending with "ified" don't
2
+ // trigger the lint.
3
+
4
+ #![deny(clippy::doc_markdown)]
5
+
6
+ pub enum OutputFormat {
7
+ /// `HumaNified`
8
+ //~^ ERROR: item in documentation is missing backticks
9
+ Plain,
10
+ // Should not warn!
11
+ /// JSONified console output
12
+ Json,
13
+ }
Original file line number Diff line number Diff line change
1
+ // This test checks that words starting with capital letters and ending with "ified" don't
2
+ // trigger the lint.
3
+
4
+ #![ deny( clippy:: doc_markdown) ]
5
+
6
+ pub enum OutputFormat {
7
+ /// HumaNified
8
+ //~^ ERROR: item in documentation is missing backticks
9
+ Plain ,
10
+ // Should not warn!
11
+ /// JSONified console output
12
+ Json ,
13
+ }
Original file line number Diff line number Diff line change
1
+ error: item in documentation is missing backticks
2
+ --> tests/ui/doc/doc_markdown-issue_13097.rs:7:9
3
+ |
4
+ LL | /// HumaNified
5
+ | ^^^^^^^^^^
6
+ |
7
+ note: the lint level is defined here
8
+ --> tests/ui/doc/doc_markdown-issue_13097.rs:4:9
9
+ |
10
+ LL | #![deny(clippy::doc_markdown)]
11
+ | ^^^^^^^^^^^^^^^^^^^^
12
+ help: try
13
+ |
14
+ LL | /// `HumaNified`
15
+ | ~~~~~~~~~~~~
16
+
17
+ error: aborting due to 1 previous error
18
+
You can’t perform that action at this time.
0 commit comments