Skip to content

Commit 0dcde71

Browse files
committed
Fix missing variable init in lint example
1 parent 5ba236f commit 0dcde71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clippy_lints/src/needless_bitwise_bool.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ declare_clippy_lint! {
2424
/// **Example:**
2525
///
2626
/// ```rust
27+
/// let (x,y) = (true, false);
2728
/// if x & !y {} // where both x and y are booleans
2829
/// ```
2930
/// Use instead:
3031
/// ```rust
32+
/// let (x,y) = (true, false);
3133
/// if x && !y {}
3234
/// ```
3335
pub NEEDLESS_BITWISE_BOOL,

0 commit comments

Comments
 (0)