diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-07-29 11:57:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-29 11:57:54 +0200 |
| commit | 5f5fdf64f1f673d70dfa28f77da13f9acd5b9af7 (patch) | |
| tree | 6dde1f513a0c4bbc244a21f140bd1f6940ba3d0c | |
| parent | d69161c11948b9a0d30748f13a8081706f846b2b (diff) | |
| parent | 3563e400cc834bece5064e57ad698163865687d7 (diff) | |
| download | rust-5f5fdf64f1f673d70dfa28f77da13f9acd5b9af7.tar.gz rust-5f5fdf64f1f673d70dfa28f77da13f9acd5b9af7.zip | |
Rollup merge of #35103 - brettcannon:patch-1, r=Manishearth
Try to clear up some awkward wording
| -rw-r--r-- | src/doc/book/closures.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/book/closures.md b/src/doc/book/closures.md index 666d0946ecc..24fcf886ef0 100644 --- a/src/doc/book/closures.md +++ b/src/doc/book/closures.md @@ -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 |
