Skip to content

Commit

Permalink
Update text/3668-async-closures.md
Browse files Browse the repository at this point in the history
add the note in one other place

Co-authored-by: Josh Triplett <[email protected]>
  • Loading branch information
compiler-errors and joshtriplett authored Jul 23, 2024
1 parent 86ad484 commit 576b9f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions text/3668-async-closures.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ In order for this to work, the `FnMut` trait would need to be ["lending"](https:

# Guide Level Explanation

(**note**: See the [naming blocking concern](#what-do-we-call-the-trait) about `async Fn*` vs `AsyncFn*` syntax. This RFC uses the `async Fn` syntax for trait bounds to avoid duplicating explanations for two different proposed syntaxes, but the syntax remains an open question.)

Just as you can write functions which accept closures, you can write functions which accept async closures:

```rust
Expand Down

0 comments on commit 576b9f4

Please sign in to comment.