Skip to content

Commit f8c6e9f

Browse files
whoops
1 parent 3681ffd commit f8c6e9f

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
@@ -141,7 +141,7 @@ let hr = async |x: &str| { do_something(x).await };
141141

142142
// They can capture values by move:
143143
let s = String::from("hello, world");
144-
let c = async || do_something(&s).await };
144+
let c = async move || do_something(&s).await };
145145
```
146146

147147
When called, they return an anonymous future type corresponding to the (not-yet-executed) body of the closure. These can be awaited like any other future.

0 commit comments

Comments
 (0)