Skip to content

Commit b30a785

Browse files
committed
more explanation about panic
1 parent 8a87926 commit b30a785

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)