Skip to content

Commit

Permalink
verbose_bit_mask: fix bit mask used in docs
Browse files Browse the repository at this point in the history
Change the existing hex bit mask (`0x1111`) to a binary one (`0b1111`).

The former does not seem to have anything to do with trailing zeros and is
probably a typo.
  • Loading branch information
spl committed Apr 12, 2020
1 parent af5940b commit c4e3ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/bit_mask.rs
Expand Up @@ -87,7 +87,7 @@ declare_clippy_lint! {
/// **Example:**
/// ```rust
/// # let x = 1;
/// if x & 0x1111 == 0 { }
/// if x & 0b1111 == 0 { }
/// ```
pub VERBOSE_BIT_MASK,
style,
Expand Down

0 comments on commit c4e3ae4

Please sign in to comment.