Fix [needless_bool] example
This commit is contained in:
@@ -34,11 +34,10 @@ declare_clippy_lint! {
|
|||||||
/// # let x = true;
|
/// # let x = true;
|
||||||
/// if x {
|
/// if x {
|
||||||
/// false
|
/// false
|
||||||
/// # ;
|
|
||||||
/// } else {
|
/// } else {
|
||||||
/// true
|
/// true
|
||||||
/// # ;
|
|
||||||
/// }
|
/// }
|
||||||
|
/// # ;
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// Use instead:
|
/// Use instead:
|
||||||
|
|||||||
Reference in New Issue
Block a user