Skip to content

Commit 3c6e5ef

Browse files
Add comment explaining what the matching items are for TOO_LONG_FIRST_DOC_PARAGRAPH lint
1 parent 4969960 commit 3c6e5ef

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

+2
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)