Skip to content

Commit

Permalink
Guide: Add missing integer type to section on if expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
andreastt committed Aug 13, 2014
1 parent 9d55421 commit 0edc55d
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

5 comments on commit 0edc55d

@bors
Copy link
Contributor

@bors bors commented on 0edc55d Aug 13, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 0edc55d Aug 13, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging andreastt/rust/ato/consistency_if_expr_example = 0edc55d into auto

@bors
Copy link
Contributor

@bors bors commented on 0edc55d Aug 13, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

andreastt/rust/ato/consistency_if_expr_example = 0edc55d merged ok, testing candidate = 86ecfa4

@bors
Copy link
Contributor

@bors bors commented on 0edc55d Aug 13, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 86ecfa4

Please sign in to comment.