Skip to content

Commit 4742f46

Browse files
Add missing ? operator after handle.await
According to line#118, there should be a `?` operator after `await`.
1 parent efab39e commit 4742f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/tutorial/receiving_messages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ We can "fix" it by waiting for the task to be joined, like this:
111111
#
112112
# async move |stream| {
113113
let handle = task::spawn(connection_loop(stream));
114-
handle.await
114+
handle.await?
115115
# };
116116
```
117117

0 commit comments

Comments
 (0)