Skip to content

Commit

Permalink
Fixes wording
Browse files Browse the repository at this point in the history
  • Loading branch information
O-I committed Oct 3, 2014
1 parent 0eb4df9 commit 083b46d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/guide.md
Expand Up @@ -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
Expand Down Expand Up @@ -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 };
Expand Down

0 comments on commit 083b46d

Please sign in to comment.