Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Dec 29, 2019
1 parent 6bf87d5 commit cf76eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/missing_doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl MissingDoc {

let has_doc = attrs
.iter()
.any(|a| a.check_name(sym!(doc)) && (a.is_value_str() || Self::has_include(a.meta())));
.any(|a| a.is_doc_comment() || a.doc_str().is_some() || a.is_value_str() || Self::has_include(a.meta()));
if !has_doc {
span_lint(
cx,
Expand Down

0 comments on commit cf76eb4

Please sign in to comment.