Clarify the panic example with a comment about unreachable code

Fixes #390
This commit is contained in:
Eli Bendersky
2021-09-02 05:42:07 -07:00
parent 91c8ceec2c
commit 2acace92c0
2 changed files with 20 additions and 1 deletions

View File

@@ -1,6 +1,11 @@
# Running this program will cause it to panic, print
# an error message and goroutine traces, and exit with
# a non-zero status.
# When first panic in `main` fires, the program exits
# without reaching the rest of the code. If you'd like
# to see the program try to create a temp file, comment
# the first panic out.
$ go run panic.go
panic: a problem