Auto merge of #13026 - alex-semenyuk:fix_doc_verbose_bit_mask_example, r=Manishearth
Fix doc for INEFFECTIVE_BIT_MASK and VERBOSE_BIT_MASK Minor fixes for doc for INEFFECTIVE_BIT_MASK and VERBOSE_BIT_MASK changelog: [none]
This commit is contained in:
commit
d255efc257
@ -242,6 +242,13 @@ declare_clippy_lint! {
|
|||||||
/// # let x = 1;
|
/// # let x = 1;
|
||||||
/// if (x | 1 > 3) { }
|
/// if (x | 1 > 3) { }
|
||||||
/// ```
|
/// ```
|
||||||
|
///
|
||||||
|
/// Use instead:
|
||||||
|
///
|
||||||
|
/// ```no_run
|
||||||
|
/// # let x = 1;
|
||||||
|
/// if (x >= 2) { }
|
||||||
|
/// ```
|
||||||
#[clippy::version = "pre 1.29.0"]
|
#[clippy::version = "pre 1.29.0"]
|
||||||
pub INEFFECTIVE_BIT_MASK,
|
pub INEFFECTIVE_BIT_MASK,
|
||||||
correctness,
|
correctness,
|
||||||
@ -265,6 +272,13 @@ declare_clippy_lint! {
|
|||||||
/// # let x = 1;
|
/// # let x = 1;
|
||||||
/// if x & 0b1111 == 0 { }
|
/// if x & 0b1111 == 0 { }
|
||||||
/// ```
|
/// ```
|
||||||
|
///
|
||||||
|
/// Use instead:
|
||||||
|
///
|
||||||
|
/// ```no_run
|
||||||
|
/// # let x: i32 = 1;
|
||||||
|
/// if x.trailing_zeros() > 4 { }
|
||||||
|
/// ```
|
||||||
#[clippy::version = "pre 1.29.0"]
|
#[clippy::version = "pre 1.29.0"]
|
||||||
pub VERBOSE_BIT_MASK,
|
pub VERBOSE_BIT_MASK,
|
||||||
pedantic,
|
pedantic,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user