We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 39436eb + 4031645 commit fac959bCopy full SHA for fac959b
src/librustc_error_codes/error_codes/E0728.md
@@ -1,6 +1,6 @@
1
-[`await`] has been used outside [`async`] function or block.
+[`await`] has been used outside [`async`] function or [`async`] block.
2
3
-Erroneous code examples:
+Erroneous code example:
4
5
```edition2018,compile_fail,E0728
6
# use std::pin::Pin;
@@ -33,7 +33,7 @@ fn foo() {
33
34
[`await`] is used to suspend the current computation until the given
35
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.
+an [`async`] context, like an `async` function or an `async` block.
37
38
```edition2018
39
0 commit comments