mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 14:38:46 +00:00
Add missing variable decl to doc comment
This commit is contained in:
parent
e16a2ac0c6
commit
08e1333fa6
1 changed files with 4 additions and 2 deletions
|
@ -309,7 +309,8 @@ declare_clippy_lint! {
|
|||
///
|
||||
/// ### Example
|
||||
/// ```rust
|
||||
/// status_code <= 400 && status_code > 500;
|
||||
/// # let status_code = 200;
|
||||
/// if status_code <= 400 && status_code > 500 {}
|
||||
/// ```
|
||||
#[clippy::version = "1.71.0"]
|
||||
pub IMPOSSIBLE_DOUBLE_CONST_COMPARISONS,
|
||||
|
@ -328,7 +329,8 @@ declare_clippy_lint! {
|
|||
///
|
||||
/// ### Example
|
||||
/// ```rust
|
||||
/// status_code <= 400 && status_code < 500;
|
||||
/// # let status_code = 200;
|
||||
/// if status_code <= 400 && status_code < 500 {}
|
||||
/// ```
|
||||
#[clippy::version = "1.71.0"]
|
||||
pub INEFFECTIVE_DOUBLE_CONST_COMPARISONS,
|
||||
|
|
Loading…
Add table
Reference in a new issue