Fix missing variable init in lint example

This commit is contained in:
Arya Kumar 2021-05-17 15:00:15 +00:00
parent 5ba236f303
commit 0dcde71224

View File

@ -24,10 +24,12 @@ declare_clippy_lint! {
/// **Example:**
///
/// ```rust
/// let (x,y) = (true, false);
/// if x & !y {} // where both x and y are booleans
/// ```
/// Use instead:
/// ```rust
/// let (x,y) = (true, false);
/// if x && !y {}
/// ```
pub NEEDLESS_BITWISE_BOOL,