Skip to content

Commit cf76eb4

Browse files
committed
1 parent 6bf87d5 commit cf76eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/missing_doc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl MissingDoc {
9494

9595
let has_doc = attrs
9696
.iter()
97-
.any(|a| a.check_name(sym!(doc)) && (a.is_value_str() || Self::has_include(a.meta())));
97+
.any(|a| a.is_doc_comment() || a.doc_str().is_some() || a.is_value_str() || Self::has_include(a.meta()));
9898
if !has_doc {
9999
span_lint(
100100
cx,

0 commit comments

Comments
 (0)