diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-08-13 20:13:44 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-08-13 20:13:49 +0200 |
| commit | 406719bf24dc33e333e70804faf7697e795bc422 (patch) | |
| tree | 0cb04aaee77a174eeead3750e24f7e3222657b75 /src/librustc_error_codes/error_codes | |
| parent | bbad31df2f0661976814832786a6067e4bc255f1 (diff) | |
| download | rust-406719bf24dc33e333e70804faf7697e795bc422.tar.gz rust-406719bf24dc33e333e70804faf7697e795bc422.zip | |
Improve wording
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0752.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_error_codes/error_codes/E0752.md b/src/librustc_error_codes/error_codes/E0752.md index 77512fddcf6..d79ad06bee0 100644 --- a/src/librustc_error_codes/error_codes/E0752.md +++ b/src/librustc_error_codes/error_codes/E0752.md @@ -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! |
