Skip to content

Commit 083b46d

Browse files
committed
Fixes wording
1 parent 0eb4df9 commit 083b46d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/guide.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3993,7 +3993,7 @@ Let's make a closure:
39933993
```{rust}
39943994
let add_one = |x| { 1i + x };
39953995
3996-
println!("The 5 plus 1 is {}.", add_one(5i));
3996+
println!("The sum of 5 plus 1 is {}.", add_one(5i));
39973997
```
39983998

39993999
We create a closure using the `|...| { ... }` syntax, and then we create a
@@ -4088,7 +4088,7 @@ fn main() {
40884088
}
40894089
```
40904090

4091-
Let's break example down, starting with `main`:
4091+
Let's break the example down, starting with `main`:
40924092

40934093
```{rust}
40944094
let square = |x: int| { x * x };

0 commit comments

Comments
 (0)