File tree 2 files changed +3
-3
lines changed
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 {
1098
1098
}
1099
1099
1100
1100
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 ( ) ) ;
1102
1102
}
1103
1103
1104
1104
fn check_item ( & mut self , cx : & EarlyContext < ' _ > , item : & ast:: Item ) {
1105
1105
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 ) ;
1107
1107
}
1108
1108
}
1109
1109
}
Original file line number Diff line number Diff line change 71
71
LL | / extern "C" {
72
72
LL | | fn foo();
73
73
LL | | }
74
- | |_- rustdoc does not generate documentation for extern block
74
+ | |_- rustdoc does not generate documentation for extern blocks
75
75
|
76
76
= help: use `//` for a plain comment
77
77
You can’t perform that action at this time.
0 commit comments