mirror of
https://github.com/golang/go
synced 2024-11-25 01:08:02 -07:00
gp_spec typo fix: code example in the "Handling panics" section
R=rsc, adg CC=golang-dev https://golang.org/cl/881047
This commit is contained in:
parent
a3db32d2a6
commit
d37e87c1b2
@ -4570,7 +4570,7 @@ If the function defined here,
|
||||
func f(hideErrors bool) {
|
||||
defer func() {
|
||||
if x := recover(); x != nil {
|
||||
println("panicking with value", v)
|
||||
println("panicking with value", x)
|
||||
if !hideErrors {
|
||||
panic(x) // go back to panicking
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user