Clarify the panic example with a comment about unreachable code
Fixes #390
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user