Skip to content

Commit

Permalink
Clean up E0728 explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 24, 2020
1 parent 9e92106 commit 4031645
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc_error_codes/error_codes/E0728.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[`await`] has been used outside [`async`] function or block.
[`await`] has been used outside [`async`] function or [`async`] block.

Erroneous code examples:
Erroneous code example:

```edition2018,compile_fail,E0728
# use std::pin::Pin;
Expand Down Expand Up @@ -33,7 +33,7 @@ fn foo() {

[`await`] is used to suspend the current computation until the given
future is ready to produce a value. So it is legal only within
an [`async`] context, like an `async fn` or an `async` block.
an [`async`] context, like an `async` function or an `async` block.

```edition2018
# use std::pin::Pin;
Expand Down

0 comments on commit 4031645

Please sign in to comment.