Update lint creation docs
This commit is contained in:
parent
cfd0f5592b
commit
adafb6c416
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user