mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 14:38:46 +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
|
/// ```rust,ignore
|
||||||
/// let foo = if bar() {
|
/// let foo = if bar() {
|
||||||
/// 42;
|
/// 42
|
||||||
/// } else {
|
/// } else {
|
||||||
/// 0;
|
/// 0
|
||||||
/// };
|
/// };
|
||||||
///
|
///
|
||||||
/// let baz = if bar() {
|
/// let baz = if bar() {
|
||||||
/// Some(42);
|
/// Some(42)
|
||||||
/// } else {
|
/// } else {
|
||||||
/// None
|
/// None
|
||||||
/// };
|
/// };
|
||||||
|
|
Loading…
Add table
Reference in a new issue