Try to clear up some awkward wording

This commit is contained in:
Brett Cannon 2016-07-28 19:02:25 -07:00 committed by GitHub
parent 54c0dcfd63
commit 3563e400cc

View File

@ -291,9 +291,9 @@ isnt 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`.
Theres one other key point here: because were bounding a generic with a
trait, this will get monomorphized, and therefore, well be doing static