auto merge of #16476 : andreastt/rust/ato/consistency_if_expr_example, r=steveklabnik

This commit is contained in:
bors 2014-08-13 18:36:27 +00:00
commit 86ecfa491f

View file

@ -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: