From 083b46dd298b5dfb7731fab2c8850a1423cc4ebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rahul=20Hor=C3=A9?= Date: Fri, 3 Oct 2014 15:59:57 -0400 Subject: [PATCH] Fixes wording --- src/doc/guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index 53e27c4b25b3..25393b4fe713 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -3993,7 +3993,7 @@ Let's make a closure: ```{rust} let add_one = |x| { 1i + x }; -println!("The 5 plus 1 is {}.", add_one(5i)); +println!("The sum of 5 plus 1 is {}.", add_one(5i)); ``` We create a closure using the `|...| { ... }` syntax, and then we create a @@ -4088,7 +4088,7 @@ fn main() { } ``` -Let's break example down, starting with `main`: +Let's break the example down, starting with `main`: ```{rust} let square = |x: int| { x * x };