1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-21 14:46:37 +02:00

Update try.md - syntax error (#1807)

Add second `:`
This commit is contained in:
IP1llar 2024-02-12 14:39:40 +00:00 committed by GitHub
parent 2f7dc8f93d
commit 2e2d47c709
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,7 +59,7 @@ Key points:
- Use the `fs::write` call to test out the different scenarios: no file, empty
file, file with username.
- 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
status on error.