]> git.lizzy.rs Git - rust.git/commitdiff
Fixes wording
authorRahul Horé <hore.rahul@gmail.com>
Fri, 3 Oct 2014 19:59:57 +0000 (15:59 -0400)
committerRahul Horé <hore.rahul@gmail.com>
Fri, 3 Oct 2014 19:59:57 +0000 (15:59 -0400)
src/doc/guide.md

index 53e27c4b25b38d734bc11f86ffc024c23aab07be..25393b4fe7131f7c115fa2ba27d5f642b8365799 100644 (file)
@@ -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 };