about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSean Leather <sean.leather@gmail.com>2020-04-12 13:11:14 +0200
committerGitHub <noreply@github.com>2020-04-12 13:11:14 +0200
commitc4e3ae4f7c8ebb215aa29bf51019d6291b9037a1 (patch)
tree521c9157f837ff91284b48a8616e0923780da706
parentaf5940b73153b2a4ea2922aa803abac45d029982 (diff)
downloadrust-c4e3ae4f7c8ebb215aa29bf51019d6291b9037a1.tar.gz
rust-c4e3ae4f7c8ebb215aa29bf51019d6291b9037a1.zip
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.
-rw-r--r--clippy_lints/src/bit_mask.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/bit_mask.rs b/clippy_lints/src/bit_mask.rs
index 78053542349..db7b5e54a2d 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,