Skip to content

Commit

Permalink
Merge pull request #1728 from szabgab/panic
Browse files Browse the repository at this point in the history
more explanation about panic
  • Loading branch information
marioidival committed Jul 24, 2023
2 parents f21e397 + b30a785 commit 4c41e00
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 4c41e00

Please sign in to comment.