From 2e2d47c709bacd2ef131c7290c9369b27a77ccb6 Mon Sep 17 00:00:00 2001 From: IP1llar Date: Mon, 12 Feb 2024 14:39:40 +0000 Subject: [PATCH] Update try.md - syntax error (#1807) 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 8bff82ef..7fca92ba 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.