Skip to content

Commit b2a8e07

Browse files
Update text/3668-async-closure.md
Co-authored-by: Yosh <github@yosh.is>
1 parent 26ded68 commit b2a8e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/3668-async-closure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ There isn't currently a way to annotate the future's return type in a closure th
520520
let c = || -> /* ??? */ async { 0 };
521521
```
522522

523-
We could reuse `impl Future` to give users the ability to annotate the type of the future returned by the closure this position, but it would require giving yet another subtly different meaning to `impl Trait`, since async closures return a *different* type when being called by-ref or by-move.
523+
We could reuse `impl Future` to give users the ability to annotate the type of the future returned by the closure in this position, but it would require giving yet another subtly different meaning to `impl Trait`, since async closures return a *different* type when being called by-ref or by-move.
524524

525525
This also would have subtle limitations, e.g.:
526526

0 commit comments

Comments
 (0)