Commit d37e87c1 authored by Joe Poirier's avatar Joe Poirier Committed by Andrew Gerrand

gp_spec typo fix: code example in the "Handling panics" section

R=rsc, adg
CC=golang-dev
https://golang.org/cl/881047
parent a3db32d2
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment