mirror of
https://github.com/rust-lang/book.git
synced 2026-05-19 04:41:25 -04:00
Use correct count of number of panic lines
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user