Skip to content

Commit c4e3ae4

Browse files
authored
verbose_bit_mask: fix bit mask used in docs
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.
1 parent af5940b commit c4e3ae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/bit_mask.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ declare_clippy_lint! {
8787
/// **Example:**
8888
/// ```rust
8989
/// # let x = 1;
90-
/// if x & 0x1111 == 0 { }
90+
/// if x & 0b1111 == 0 { }
9191
/// ```
9292
pub VERBOSE_BIT_MASK,
9393
style,

0 commit comments

Comments
 (0)