improve the doc of doc_paragraphs_missing_punctuation (#16377)

Related issue: rust-lang/rust-clippy#16370

changelog: [`doc_paragraphs_missing_punctuation`]: improve its doc
This commit is contained in:
dswij 2026-01-11 15:47:33 +00:00 committed by GitHub
commit 1437ea04e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -692,6 +692,12 @@ declare_clippy_lint! {
/// ///
/// /// It was chosen by a fair dice roll.
/// ```
///
/// ### Terminal punctuation marks
/// This lint treats these characters as end markers: '.', '?', '!', '…' and ':'.
///
/// The colon is not exactly a terminal punctuation mark, but this is required for paragraphs that
/// introduce a table or a list for example.
#[clippy::version = "1.93.0"]
pub DOC_PARAGRAPHS_MISSING_PUNCTUATION,
restriction,