Skip to content

Commit

Permalink
Merge pull request #802 from alercah/patch-1
Browse files Browse the repository at this point in the history
Drive-by mention unsafe fn closure coercion
  • Loading branch information
nikomatsakis committed Jul 29, 2020
2 parents aa309aa + f740783 commit 5642af8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/closure.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ more specific call traits:
> not how it captures them.
*Non-capturing closures* are closures that don't capture anything from their
environment. They can be coerced to function pointers (`fn`) with the matching
signature.
environment. They can be coerced to function pointers (e.g., `fn()`)
with the matching signature.

```rust
let add = |x, y| x + y;
Expand Down

0 comments on commit 5642af8

Please sign in to comment.