diff --git a/content/tokio/tutorial/async.md b/content/tokio/tutorial/async.md index 57216bab..afae7bb3 100644 --- a/content/tokio/tutorial/async.md +++ b/content/tokio/tutorial/async.md @@ -142,7 +142,7 @@ enum MainFuture { impl Future for MainFuture { type Output = (); - fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) + fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<()> { use MainFuture::*;