From c4e3ae4f7c8ebb215aa29bf51019d6291b9037a1 Mon Sep 17 00:00:00 2001 From: Sean Leather Date: Sun, 12 Apr 2020 13:11:14 +0200 Subject: [PATCH] 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. --- clippy_lints/src/bit_mask.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/bit_mask.rs b/clippy_lints/src/bit_mask.rs index 780535423499..db7b5e54a2d8 100644 --- a/clippy_lints/src/bit_mask.rs +++ b/clippy_lints/src/bit_mask.rs @@ -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,