mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
Merge pull request #1362 from hdhoang/patch-1
let_if_seq: fix rewrite example
This commit is contained in:
commit
84d9872785
1 changed files with 3 additions and 3 deletions
|
@ -31,13 +31,13 @@ use utils::{snippet, span_lint_and_then};
|
|||
///
|
||||
/// ```rust,ignore
|
||||
/// let foo = if bar() {
|
||||
/// 42;
|
||||
/// 42
|
||||
/// } else {
|
||||
/// 0;
|
||||
/// 0
|
||||
/// };
|
||||
///
|
||||
/// let baz = if bar() {
|
||||
/// Some(42);
|
||||
/// Some(42)
|
||||
/// } else {
|
||||
/// None
|
||||
/// };
|
||||
|
|
Loading…
Reference in a new issue