Skip to content

Commit 36d863b

Browse files
authored
Merge pull request #1245 from liigo/patch-1
a fix about .await
2 parents 24536db + bdaa928 commit 36d863b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/expressions/await-expr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ More specifically, an await expression has the following effect.
1616
2. Evaluate the future to a [future] `tmp`;
1717
3. Pin `tmp` using [`Pin::new_unchecked`];
1818
4. This pinned future is then polled by calling the [`Future::poll`] method and passing it the current [task context](#task-context);
19-
5. If the call to `poll` returns [`Poll::Pending`], then the future returns `Poll::Pending`, suspending its state so that, when the surrounding async context is re-polled,execution returns to step 2;
19+
5. If the call to `poll` returns [`Poll::Pending`], then the future returns `Poll::Pending`, suspending its state so that, when the surrounding async context is re-polled,execution returns to step 3;
2020
6. Otherwise the call to `poll` must have returned [`Poll::Ready`], in which case the value contained in the [`Poll::Ready`] variant is used as the result of the `await` expression itself.
2121

2222
> **Edition differences**: Await expressions are only available beginning with Rust 2018.

0 commit comments

Comments
 (0)