mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
Rollup merge of #98739 - euclio:useless-comment-plural, r=Dylan-DPC
fix grammar in useless doc comment lint
This commit is contained in:
commit
528202fec2
@ -1098,12 +1098,12 @@ impl EarlyLintPass for UnusedDocComment {
|
||||
}
|
||||
|
||||
fn check_block(&mut self, cx: &EarlyContext<'_>, block: &ast::Block) {
|
||||
warn_if_doc(cx, block.span, "block", &block.attrs());
|
||||
warn_if_doc(cx, block.span, "blocks", &block.attrs());
|
||||
}
|
||||
|
||||
fn check_item(&mut self, cx: &EarlyContext<'_>, item: &ast::Item) {
|
||||
if let ast::ItemKind::ForeignMod(_) = item.kind {
|
||||
warn_if_doc(cx, item.span, "extern block", &item.attrs);
|
||||
warn_if_doc(cx, item.span, "extern blocks", &item.attrs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ LL |
|
||||
LL | / extern "C" {
|
||||
LL | | fn foo();
|
||||
LL | | }
|
||||
| |_- rustdoc does not generate documentation for extern block
|
||||
| |_- rustdoc does not generate documentation for extern blocks
|
||||
|
|
||||
= help: use `//` for a plain comment
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user