mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-03-22 14:59:37 +02:00
parent
2f7dc8f93d
commit
2e2d47c709
@ -59,7 +59,7 @@ Key points:
|
|||||||
- Use the `fs::write` call to test out the different scenarios: no file, empty
|
- Use the `fs::write` call to test out the different scenarios: no file, empty
|
||||||
file, file with username.
|
file, file with username.
|
||||||
- Note that `main` can return a `Result<(), E>` as long as it implements
|
- Note that `main` can return a `Result<(), E>` as long as it implements
|
||||||
`std::process:Termination`. In practice, this means that `E` implements
|
`std::process::Termination`. In practice, this means that `E` implements
|
||||||
`Debug`. The executable will print the `Err` variant and return a nonzero exit
|
`Debug`. The executable will print the `Err` variant and return a nonzero exit
|
||||||
status on error.
|
status on error.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user