We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d69161c + 3563e40 commit 5f5fdf6Copy full SHA for 5f5fdf6
src/doc/book/closures.md
@@ -291,9 +291,9 @@ isn’t interesting. The next part is:
291
# some_closure(1) }
292
```
293
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`.
+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`.
297
298
There’s one other key point here: because we’re bounding a generic with a
299
trait, this will get monomorphized, and therefore, we’ll be doing static
0 commit comments