Skip to content

Commit 6a19046

Browse files
author
Johann
committed
Four spaces indent, rephrasing
1 parent 770f0e9 commit 6a19046

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/doc/reference.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3066,12 +3066,15 @@ block will execute, otherwise flow proceeds to the first `else` block that follo
30663066

30673067
```
30683068
let dish = ("Ham", "Eggs");
3069-
if let ("Bacon", b) = dish { // will not execute because let is refuted
3070-
println!("Bacon is served with {}", b);
3069+
3070+
// this body will be skipped because the pattern is refuted
3071+
if let ("Bacon", b) = dish {
3072+
println!("Bacon is served with {}", b);
30713073
}
30723074
3073-
if let ("Ham", b) = dish { // will execute
3074-
println!("Ham is served with {}", b);
3075+
// this body will execute
3076+
if let ("Ham", b) = dish {
3077+
println!("Ham is served with {}", b);
30753078
}
30763079
```
30773080

0 commit comments

Comments
 (0)