Skip to content

Commit

Permalink
auto merge of #16476 : andreastt/rust/ato/consistency_if_expr_example…
Browse files Browse the repository at this point in the history
…, r=steveklabnik
  • Loading branch information
bors committed Aug 13, 2014
2 parents d917770 + 0edc55d commit 86ecfa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ This is not the same as this, which won't compile:
```{ignore}
let x = 5i;
let y: int = if x == 5 { 10i; } else { 15i; };
let y: int = if x == 5i { 10i; } else { 15i; };
```

Note the semicolons after the 10 and 15. Rust will give us the following error:
Expand Down

0 comments on commit 86ecfa4

Please sign in to comment.