Skip to content

Commit 406719b

Browse files
Improve wording
1 parent bbad31d commit 406719b

File tree

1 file changed

+3
-3
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+3
-3
lines changed

src/librustc_error_codes/error_codes/E0752.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ async fn main() -> Result<i32, ()> { // error!
88
}
99
```
1010

11-
`fn main()` or the specified start function is not allowed to be `async`. You
12-
might be seeing this error because your async runtime library is not set up
13-
correctly. To fix it, don't declare the entry point as `async`:
11+
`fn main()` or the specified start function is not allowed to be `async`. Not
12+
having a correct async runtime library setup may cause this error. To fix it,
13+
declare the entry point without `async`:
1414

1515
```
1616
fn main() -> Result<i32, ()> { // ok!

0 commit comments

Comments
 (0)