Skip to content

Commit 4c41e00

Browse files
authored
Merge pull request #1728 from szabgab/panic
more explanation about panic
2 parents f21e397 + b30a785 commit 4c41e00

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/error/panic.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@ fn drink(beverage: &str) {
1515
fn main() {
1616
drink("water");
1717
drink("lemonade");
18+
drink("still water");
1819
}
1920
```
21+
22+
The first call to `drink` works. The second panics and thus the third is never called.

0 commit comments

Comments
 (0)