From d415b453e772dead5cbbc16978f84e9a9e7b9c1c Mon Sep 17 00:00:00 2001 From: Sergey Kaunov Date: Tue, 21 Jan 2025 20:38:14 +0300 Subject: [PATCH] Update async.md fix `return` removal syntax --- content/tokio/tutorial/async.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tokio/tutorial/async.md b/content/tokio/tutorial/async.md index cbac9601..e3a645ab 100644 --- a/content/tokio/tutorial/async.md +++ b/content/tokio/tutorial/async.md @@ -717,7 +717,7 @@ impl Future for Delay { // Check the current instant. If the duration has elapsed, then // this future has completed so we return `Poll::Ready`. if Instant::now() >= self.when { - Poll::Ready(()); + Poll::Ready(()) } else { // The duration has not elapsed. If this is the first time the future // is called, spawn the timer thread. If the timer thread is already