Skip to content

Commit 0ce97fc

Browse files
Fix code examples
1 parent 406719b commit 0ce97fc

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

src/librustc_error_codes/error_codes/E0752.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ The entry point of the program was marked as `async`.
33
Erroneous code example:
44

55
```compile_fail,E0752
6-
async fn main() -> Result<i32, ()> { // error!
7-
Ok(1)
6+
async fn main() -> Result<(), ()> { // error!
7+
Ok(())
88
}
99
```
1010

@@ -13,7 +13,7 @@ having a correct async runtime library setup may cause this error. To fix it,
1313
declare the entry point without `async`:
1414

1515
```
16-
fn main() -> Result<i32, ()> { // ok!
17-
Ok(1)
16+
fn main() -> Result<(), ()> { // ok!
17+
Ok(())
1818
}
1919
```

0 commit comments

Comments
 (0)