Skip to content

Commit ee9b0cd

Browse files
Update text/3668-async-closure.md
whoops forgot a mut Co-authored-by: zachs18 <8355914+zachs18@users.noreply.github.com>
1 parent 662654b commit ee9b0cd

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
@@ -357,7 +357,7 @@ let closure = async || {
357357
};
358358
```
359359

360-
The closure captures `vec` with some `&'closure mut Vec<String>` which lives until the closure is dropped. Then every call to the closure reborrows that mutable reference `&'call Vec<String>` which lives until the future is dropped (e.g. `await`ed).
360+
The closure captures `vec` with some `&'closure mut Vec<String>` which lives until the closure is dropped. Then every call to the closure reborrows that mutable reference `&'call mut Vec<String>` which lives until the future is dropped (e.g. `await`ed).
361361

362362
As another example:
363363

0 commit comments

Comments
 (0)