mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
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:
commit
89cffe18b1
1 changed files with 5 additions and 1 deletions
|
@ -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},
|
||||
|
|
Loading…
Reference in a new issue