mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-28 23:53:55 +00:00
Fix [needless_bool
] example
This commit is contained in:
parent
0e07f55ceb
commit
649ac36836
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user