Skip to content

Commit

Permalink
Four spaces indent, rephrasing
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann committed May 11, 2015
1 parent 770f0e9 commit 6a19046
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -3066,12 +3066,15 @@ block will execute, otherwise flow proceeds to the first `else` block that follo

```
let dish = ("Ham", "Eggs");
if let ("Bacon", b) = dish { // will not execute because let is refuted
println!("Bacon is served with {}", b);
// this body will be skipped because the pattern is refuted
if let ("Bacon", b) = dish {
println!("Bacon is served with {}", b);
}
if let ("Ham", b) = dish { // will execute
println!("Ham is served with {}", b);
// this body will execute
if let ("Ham", b) = dish {
println!("Ham is served with {}", b);
}
```

Expand Down

0 comments on commit 6a19046

Please sign in to comment.