Skip to content

Commit adafb6c

Browse files
committed
Update lint creation docs
1 parent cfd0f55 commit adafb6c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/adding_lints.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -516,11 +516,12 @@ declare_clippy_lint! {
516516
/// ### Example
517517
///
518518
/// ```rust,ignore
519-
/// // Bad
520-
/// Insert a short example of code that triggers the lint
521-
///
522-
/// // Good
523-
/// Insert a short example of improved code that doesn't trigger the lint
519+
/// // A short example of code that triggers the lint
520+
/// ```
521+
///
522+
/// Use instead:
523+
/// ```rust,ignore
524+
/// // A short example of improved code that doesn't trigger the lint
524525
/// ```
525526
#[clippy::version = "1.29.0"]
526527
pub FOO_FUNCTIONS,

0 commit comments

Comments
 (0)