Skip to content

Commit d0ab22d

Browse files
author
Alexis Hunt
authored
Drive-by mention unsafe fn closure coercion
1 parent 3ce94ca commit d0ab22d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types/closure.md

Lines changed: 2 additions & 2 deletions
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 (`fn` or `unsafe fn`)
135+
with the matching signature.
136136

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

0 commit comments

Comments
 (0)