Skip to content

Commit 84d9872

Browse files
authored
Merge pull request #1362 from hdhoang/patch-1
let_if_seq: fix rewrite example
2 parents 0b7de0d + 4215292 commit 84d9872

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/let_if_seq.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ use utils::{snippet, span_lint_and_then};
3131
///
3232
/// ```rust,ignore
3333
/// let foo = if bar() {
34-
/// 42;
34+
/// 42
3535
/// } else {
36-
/// 0;
36+
/// 0
3737
/// };
3838
///
3939
/// let baz = if bar() {
40-
/// Some(42);
40+
/// Some(42)
4141
/// } else {
4242
/// None
4343
/// };

0 commit comments

Comments
 (0)