We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfd0f55 commit adafb6cCopy full SHA for adafb6c
doc/adding_lints.md
@@ -516,11 +516,12 @@ declare_clippy_lint! {
516
/// ### Example
517
///
518
/// ```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
+ /// // A short example of code that triggers the lint
+ /// ```
+ ///
+ /// Use instead:
+ /// ```rust,ignore
524
+ /// // A short example of improved code that doesn't trigger the lint
525
/// ```
526
#[clippy::version = "1.29.0"]
527
pub FOO_FUNCTIONS,
0 commit comments