Merge pull request #1362 from hdhoang/patch-1
let_if_seq: fix rewrite example
This commit is contained in:
commit
84d9872785
@ -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…
Reference in New Issue
Block a user