File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1098,12 +1098,12 @@ impl EarlyLintPass for UnusedDocComment {
10981098 }
10991099
11001100 fn check_block ( & mut self , cx : & EarlyContext < ' _ > , block : & ast:: Block ) {
1101- warn_if_doc ( cx, block. span , "block " , & block. attrs ( ) ) ;
1101+ warn_if_doc ( cx, block. span , "blocks " , & block. attrs ( ) ) ;
11021102 }
11031103
11041104 fn check_item ( & mut self , cx : & EarlyContext < ' _ > , item : & ast:: Item ) {
11051105 if let ast:: ItemKind :: ForeignMod ( _) = item. kind {
1106- warn_if_doc ( cx, item. span , "extern block " , & item. attrs ) ;
1106+ warn_if_doc ( cx, item. span , "extern blocks " , & item. attrs ) ;
11071107 }
11081108 }
11091109}
Original file line number Diff line number Diff line change 7171LL | / extern "C" {
7272LL | | fn foo();
7373LL | | }
74- | |_- rustdoc does not generate documentation for extern block
74+ | |_- rustdoc does not generate documentation for extern blocks
7575 |
7676 = help: use `//` for a plain comment
7777
You can’t perform that action at this time.
0 commit comments