]> git.lizzy.rs Git - rust.git/commitdiff
Improve wording
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 13 Aug 2020 18:13:44 +0000 (20:13 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 13 Aug 2020 18:13:49 +0000 (20:13 +0200)
src/librustc_error_codes/error_codes/E0752.md

index 77512fddcf63a5238375ea8862494d49b0bc6e41..d79ad06bee095cc92c250008f6f1bb8631125830 100644 (file)
@@ -8,9 +8,9 @@ async fn main() -> Result<i32, ()> { // error!
 }
 ```
 
-`fn main()` or the specified start function is not allowed to be `async`. You
-might be seeing this error because your async runtime library is not set up
-correctly. To fix it, don't declare the entry point as `async`:
+`fn main()` or the specified start function is not allowed to be `async`. Not
+having a correct async runtime library setup may cause this error. To fix it,
+declare the entry point without `async`:
 
 ```
 fn main() -> Result<i32, ()> { // ok!