From 4044cbc8fb9274f465bbd56a7261cd188ecbbf55 Mon Sep 17 00:00:00 2001 From: Michael Hoffmann Date: Wed, 27 Jun 2018 21:32:33 +0200 Subject: [PATCH] Use correct count of number of panic lines --- 2018-edition/src/ch09-01-unrecoverable-errors-with-panic.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2018-edition/src/ch09-01-unrecoverable-errors-with-panic.md b/2018-edition/src/ch09-01-unrecoverable-errors-with-panic.md index 26cb53dfc..7ce65d2ce 100644 --- a/2018-edition/src/ch09-01-unrecoverable-errors-with-panic.md +++ b/2018-edition/src/ch09-01-unrecoverable-errors-with-panic.md @@ -45,7 +45,7 @@ thread 'main' panicked at 'crash and burn', src/main.rs:2:4 note: Run with `RUST_BACKTRACE=1` for a backtrace. ``` -The call to `panic!` causes the error message contained in the last three +The call to `panic!` causes the error message contained in the last two lines. The first line shows our panic message and the place in our source code where the panic occurred: *src/main.rs:2:4* indicates that it’s the second line, fourth character of our *src/main.rs* file.