Skip to content

Commit e54f7ed

Browse files
committed
Fix wording about return type
1 parent ea25d08 commit e54f7ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/3185-static-async-fn-in-trait.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ trait Example {
142142
`async fn` that appear in impls are desugared in the same general way as an [existing async function](https://doc.rust-lang.org/reference/items/functions.html#async-functions), but with some slight differences:
143143

144144
* The value of the associated type `$` is equal to an `impl Future` type, rather than the `impl Future` being the return type of the function
145-
* The function returns a reference to `Self::$<...>` with all the appropriate generic parameters
145+
* The function returns `Self::$<...>` with all the appropriate generic parameters
146146

147147
Otherwise, the desugaring is the same. The body of the function becomes an `async move { ... }` block that both (a) captures all parameters and (b) contains the body expression.
148148

0 commit comments

Comments
 (0)