From 0edc55dc21089ba50e5dc49b3aa5f894b7675f3b Mon Sep 17 00:00:00 2001 From: Andreas Tolfsen Date: Wed, 13 Aug 2014 15:58:12 +0100 Subject: [PATCH] Guide: Add missing integer type to section on if expressions --- src/doc/guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index ecde51538e2c..c615a335b120 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: