about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-08-13 18:36:27 +0000
committerbors <bors@rust-lang.org>2014-08-13 18:36:27 +0000
commit86ecfa491fcaf3dfbc8275fbda5c6e31841a1866 (patch)
treebeb51648c584cb34d9f842cf40ef046bdadb30ae
parentd9177707926d4fbed9dd9e4e7afc9a8c185dafe0 (diff)
parent0edc55dc21089ba50e5dc49b3aa5f894b7675f3b (diff)
downloadrust-86ecfa491fcaf3dfbc8275fbda5c6e31841a1866.tar.gz
rust-86ecfa491fcaf3dfbc8275fbda5c6e31841a1866.zip
auto merge of #16476 : andreastt/rust/ato/consistency_if_expr_example, r=steveklabnik
-rw-r--r--src/doc/guide.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/guide.md b/src/doc/guide.md
index ecde51538e2..c615a335b12 100644
--- a/src/doc/guide.md
+++ b/src/doc/guide.md
@@ -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: