about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-07-24 17:43:12 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-07-24 17:43:29 +0200
commit403164569170e3f5c06db8b66257ac61db7cff4b (patch)
tree2d36e84f675941a6b45b8a970425b27ee47426db
parent9e92106d457abd14f82adc29e7f2496861e07916 (diff)
downloadrust-403164569170e3f5c06db8b66257ac61db7cff4b.tar.gz
rust-403164569170e3f5c06db8b66257ac61db7cff4b.zip
Clean up E0728 explanation
-rw-r--r--src/librustc_error_codes/error_codes/E0728.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_error_codes/error_codes/E0728.md b/src/librustc_error_codes/error_codes/E0728.md
index 1afbedab0ca..f4968a4f00e 100644
--- a/src/librustc_error_codes/error_codes/E0728.md
+++ b/src/librustc_error_codes/error_codes/E0728.md
@@ -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;
@@ -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;