Update lint creation docs

This commit is contained in:
Serial 2022-05-28 09:50:14 -04:00
parent cfd0f5592b
commit adafb6c416

View File

@ -516,11 +516,12 @@ declare_clippy_lint! {
/// ### Example /// ### Example
/// ///
/// ```rust,ignore /// ```rust,ignore
/// // Bad /// // A short example of code that triggers the lint
/// Insert a short example of code that triggers the lint /// ```
/// ///
/// // Good /// Use instead:
/// Insert a short example of improved code that doesn't trigger the lint /// ```rust,ignore
/// // A short example of improved code that doesn't trigger the lint
/// ``` /// ```
#[clippy::version = "1.29.0"] #[clippy::version = "1.29.0"]
pub FOO_FUNCTIONS, pub FOO_FUNCTIONS,