Skip to content

Commit

Permalink
Rollup merge of #35103 - brettcannon:patch-1, r=Manishearth
Browse files Browse the repository at this point in the history
Try to clear up some awkward wording
  • Loading branch information
GuillaumeGomez authored Jul 29, 2016
2 parents d69161c + 3563e40 commit 5f5fdf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/doc/book/closures.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,9 @@ isn’t interesting. The next part is:
# some_closure(1) }
```

Because `Fn` is a trait, we can bound our generic with it. In this case, our
closure takes a `i32` as an argument and returns an `i32`, and so the generic
bound we use is `Fn(i32) -> i32`.
Because `Fn` is a trait, we can use it as a bound for our generic type. In
this case, our closure takes a `i32` as an argument and returns an `i32`, and
so the generic bound we use is `Fn(i32) -> i32`.

There’s one other key point here: because we’re bounding a generic with a
trait, this will get monomorphized, and therefore, we’ll be doing static
Expand Down

0 comments on commit 5f5fdf6

Please sign in to comment.