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
1 changed files with 3 additions and 3 deletions

View File

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