Skip to content

Commit

Permalink
more explanation about panic
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Jul 9, 2023
1 parent 8a87926 commit b30a785
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/error/panic.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ fn drink(beverage: &str) {
fn main() {
drink("water");
drink("lemonade");
drink("still water");
}
```

The first call to `drink` works. The second panics and thus the third is never called.

0 comments on commit b30a785

Please sign in to comment.