mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-26 22:50:56 +00:00
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:
parent
23549a8c36
commit
7545925ffe
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