Skip to content

Commit 5f5fdf6

Browse files
Rollup merge of #35103 - brettcannon:patch-1, r=Manishearth
Try to clear up some awkward wording
2 parents d69161c + 3563e40 commit 5f5fdf6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/book/closures.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,9 @@ isn’t interesting. The next part is:
291291
# some_closure(1) }
292292
```
293293

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

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

0 commit comments

Comments
 (0)