Merge pull request #1362 from hdhoang/patch-1

let_if_seq: fix rewrite example
This commit is contained in:
Oliver Schneider 2016-11-24 11:19:57 +01:00 committed by GitHub
commit 84d9872785

View File

@ -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
/// }; /// };