Skip to content

Commit adef05f

Browse files
committed
Some tweaks to the async Fn* wording
Trying to avoid some confusion.
1 parent 73832d3 commit adef05f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/types/closure.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,12 +516,12 @@ r[type.closure.async.traits]
516516
r[type.closure.async.traits.fn-family]
517517
Async closures have a further restriction of whether or not they implement [`FnMut`] or [`Fn`].
518518

519-
The [`Future`] returned by the async closure has similar capturing characteristics as a closure. It captures place expressions from the async closure based on how they are used. The async closure is said to be *lending* if it has either of the following properties:
519+
The [`Future`] returned by the async closure has similar capturing characteristics as a closure. It captures place expressions from the async closure based on how they are used. The async closure is said to be *lending* to its [`Future`] if it has either of the following properties:
520520

521-
- The future capture is mutable.
521+
- The `Future` includes a mutable capture.
522522
- The async closure captures by value, except when the value is accessed with a dereference projection.
523523

524-
If the async closure is lending to the future, then [`FnMut`] and [`Fn`] are *not* implemented.
524+
If the async closure is lending to its `Future`, then [`FnMut`] and [`Fn`] are *not* implemented.
525525

526526
r[type.closure.async.traits.async-family]
527527
Async closures implement [`AsyncFn`], [`AsyncFnMut`], and [`AsyncFnOnce`] in an analogous way as regular closures implement [`Fn`], [`FnMut`], and [`FnOnce`]; that is, depending on the use of the captured variables in its body.

0 commit comments

Comments
 (0)