Skip to content

Commit fac959b

Browse files
authored
Rollup merge of #74720 - GuillaumeGomez:cleanup-e0728, r=jyn514
Clean up E0728 explanation r? @Dylan-DPC
2 parents 39436eb + 4031645 commit fac959b

File tree

1 file changed

+3
-3
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+3
-3
lines changed

src/librustc_error_codes/error_codes/E0728.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[`await`] has been used outside [`async`] function or block.
1+
[`await`] has been used outside [`async`] function or [`async`] block.
22

3-
Erroneous code examples:
3+
Erroneous code example:
44

55
```edition2018,compile_fail,E0728
66
# use std::pin::Pin;
@@ -33,7 +33,7 @@ fn foo() {
3333

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

3838
```edition2018
3939
# use std::pin::Pin;

0 commit comments

Comments
 (0)