Skip to content

Commit 367da34

Browse files
Add comment explaining what the matching items are for TOO_LONG_FIRST_DOC_PARAGRAPH lint
1 parent bfbe904 commit 367da34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clippy_lints/src/doc/too_long_first_doc_paragraph.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ pub(super) fn check(
2121
if first_paragraph_len <= 200
2222
|| !matches!(
2323
item.kind,
24+
// This is the list of items which can be documented AND are displayed on the module
25+
// page. So associated items or impl blocks are not part of this list.
2426
ItemKind::Static(..)
2527
| ItemKind::Const(..)
2628
| ItemKind::Fn(..)

0 commit comments

Comments
 (0)