You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/expressions/await-expr.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ More specifically, an await expression has the following effect.
16
16
2. Evaluate the future to a [future]`tmp`;
17
17
3. Pin `tmp` using [`Pin::new_unchecked`];
18
18
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;
20
20
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.
21
21
22
22
> **Edition differences**: Await expressions are only available beginning with Rust 2018.
0 commit comments