1
0
mirror of https://github.com/golang/go synced 2024-11-21 17:34:40 -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:
Joe Poirier 2010-04-08 10:25:57 +10:00 committed by Andrew Gerrand
parent a3db32d2a6
commit d37e87c1b2

View File

@ -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
}