Skip to content

Commit 5642af8

Browse files
authored
Merge pull request #802 from alercah/patch-1
Drive-by mention unsafe fn closure coercion
2 parents aa309aa + f740783 commit 5642af8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types/closure.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ more specific call traits:
131131
> not how it captures them.
132132
133133
*Non-capturing closures* are closures that don't capture anything from their
134-
environment. They can be coerced to function pointers (`fn`) with the matching
135-
signature.
134+
environment. They can be coerced to function pointers (e.g., `fn()`)
135+
with the matching signature.
136136

137137
```rust
138138
let add = |x, y| x + y;

0 commit comments

Comments
 (0)