From 4742f461fe0d6e3219ed3d71d5d97468627a7d08 Mon Sep 17 00:00:00 2001 From: abhi Date: Sat, 22 Feb 2020 15:17:06 +0530 Subject: [PATCH] Add missing ? operator after handle.await According to line#118, there should be a `?` operator after `await`. --- docs/src/tutorial/receiving_messages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/tutorial/receiving_messages.md b/docs/src/tutorial/receiving_messages.md index 4f70529..f62b65d 100644 --- a/docs/src/tutorial/receiving_messages.md +++ b/docs/src/tutorial/receiving_messages.md @@ -111,7 +111,7 @@ We can "fix" it by waiting for the task to be joined, like this: # # async move |stream| { let handle = task::spawn(connection_loop(stream)); -handle.await +handle.await? # }; ```