Skip to content

Commit

Permalink
Add comment explaining what the matching items are for `TOO_LONG_FIRS…
Browse files Browse the repository at this point in the history
…T_DOC_PARAGRAPH` lint
  • Loading branch information
GuillaumeGomez committed Jul 26, 2024
1 parent 024273c commit 7e2cbf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clippy_lints/src/doc/too_long_first_doc_paragraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ pub(super) fn check(
if first_paragraph_len <= 200
|| !matches!(
item.kind,
// This is the list of items which can be documented AND are displayed on the module
// page. So associated items or impl blocks are not part of this list.
ItemKind::Static(..)
| ItemKind::Const(..)
| ItemKind::Fn(..)
Expand Down

0 comments on commit 7e2cbf0

Please sign in to comment.