new_lint.rs: encourage authors to write more detailed code samples in lint descriptions (linted as well as fixed code)

changelog: none
This commit is contained in:
Matthias Krüger 2020-03-18 01:43:39 +01:00
parent 23549a8c36
commit 7545925ffe

View file

@ -131,7 +131,11 @@ declare_clippy_lint! {{
/// **Example:**
///
/// ```rust
/// // example code
/// // example code where clippy issues a warning
/// ```
/// Use instead:
/// ```rust
/// // example code which does not raise clippy warning
/// ```
pub {name_upper},
{category},