Skip to content

Commit

Permalink
Update async.md
Browse files Browse the repository at this point in the history
fix `return` removal syntax
  • Loading branch information
skaunov authored Jan 21, 2025
1 parent d92d472 commit d415b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/tokio/tutorial/async.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d415b45

Please sign in to comment.