@@ -18,14 +18,14 @@ declare_clippy_lint! {
18
18
/// {`!=`, `>=`, `>`, `!=`, `>=`, `>`}) can be determined from the following
19
19
/// table:
20
20
///
21
- /// |Comparison |Bit Op|Example |is always|Formula |
22
- /// |------------|------|------------|---------|----------------------|
23
- /// |`==` or `!=`| `&` |`x & 2 == 3`|`false` |`c & m != c` |
24
- /// |`<` or `>=`| `&` |`x & 2 < 3` |`true` |`m < c` |
25
- /// |`>` or `<=`| `&` |`x & 1 > 1` |`false` |`m <= c` |
26
- /// |`==` or `!=`| `|` |`x | 1 == 0`|`false` |`c | m != c` |
27
- /// |`<` or `>=`| `|` |`x | 1 < 1` |`false` |`m >= c` |
28
- /// |`<=` or `>` | `|` |`x | 1 > 0` |`true` |`m > c` |
21
+ /// |Comparison |Bit Op|Example |is always|Formula |
22
+ /// |------------|------|------------- |---------|----------------------|
23
+ /// |`==` or `!=`| `&` |`x & 2 == 3` |`false` |`c & m != c` |
24
+ /// |`<` or `>=`| `&` |`x & 2 < 3` |`true` |`m < c` |
25
+ /// |`>` or `<=`| `&` |`x & 1 > 1` |`false` |`m <= c` |
26
+ /// |`==` or `!=`| `\ |` |`x \ | 1 == 0`|`false` |`c \ | m != c` |
27
+ /// |`<` or `>=`| `\ |` |`x \ | 1 < 1` |`false` |`m >= c` |
28
+ /// |`<=` or `>` | `\ |` |`x \ | 1 > 0` |`true` |`m > c` |
29
29
///
30
30
/// ### Why is this bad?
31
31
/// If the bits that the comparison cares about are always
@@ -53,10 +53,10 @@ declare_clippy_lint! {
53
53
/// without changing the outcome. The basic structure can be seen in the
54
54
/// following table:
55
55
///
56
- /// |Comparison| Bit Op |Example |equals |
57
- /// |----------|---------| -----------|-------|
58
- /// |`>` / `<=`|`|` / `^`|`x | 2 > 3`|`x > 3`|
59
- /// |`<` / `>=`|`|` / `^`|`x ^ 1 < 4`|`x < 4`|
56
+ /// |Comparison| Bit Op |Example |equals |
57
+ /// |----------|----------|- -----------|-------|
58
+ /// |`>` / `<=`|`\ |` / `^`|`x \ | 2 > 3`|`x > 3`|
59
+ /// |`<` / `>=`|`\ |` / `^`|`x ^ 1 < 4` |`x < 4`|
60
60
///
61
61
/// ### Why is this bad?
62
62
/// Not equally evil as [`bad_bit_mask`](#bad_bit_mask),
0 commit comments