From 6984209813b0a3ea03c78a6276a9695277a19759 Mon Sep 17 00:00:00 2001 From: IP1llar Date: Sun, 11 Feb 2024 16:32:14 +0000 Subject: [PATCH] Update try.md - syntax error Add second `:` --- src/error-handling/try.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error-handling/try.md b/src/error-handling/try.md index 8bff82efaf0..7fca92baaac 100644 --- a/src/error-handling/try.md +++ b/src/error-handling/try.md @@ -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.