]> git.lizzy.rs Git - rust.git/commitdiff
Clean up E0728 explanation
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 24 Jul 2020 15:43:12 +0000 (17:43 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 24 Jul 2020 15:43:29 +0000 (17:43 +0200)
src/librustc_error_codes/error_codes/E0728.md

index 1afbedab0cabbc487d9957f889d0f72dde7fbc4a..f4968a4f00e38f4da4ea6376faeff7c039d5f63f 100644 (file)
@@ -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;