mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-25 00:18:46 +08:00
Explain the code we're going to try a bit more before showing it
This commit is contained in:
parent
9057190e0d
commit
3f9dd9dfa1
@ -31,7 +31,8 @@ message and the place in our source code where the panic occurred:
|
||||
`src/main.rs`, line two.
|
||||
|
||||
But that only shows us the exact line that called `panic!`. That's not always
|
||||
useful. Let's modify our example slightly:
|
||||
useful. Let's modify our example slightly to see what it's like when a `panic!`
|
||||
call comes from code we call instead of from our code directly:
|
||||
|
||||
```rust,should_panic
|
||||
fn main() {
|
||||
|
Loading…
Reference in New Issue
Block a user