Auto merge of #5330 - matthiaskrgr:newlint_expl, r=flip1995

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:
bors 2020-03-18 13:58:41 +00:00
commit 89cffe18b1

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},