]> Cypherpunks repositories - gostls13.git/commitdiff
gp_spec typo fix: code example in the "Handling panics" section
authorJoe Poirier <jdpoirier@gmail.com>
Thu, 8 Apr 2010 00:25:57 +0000 (10:25 +1000)
committerAndrew Gerrand <adg@golang.org>
Thu, 8 Apr 2010 00:25:57 +0000 (10:25 +1000)
R=rsc, adg
CC=golang-dev
https://golang.org/cl/881047

doc/go_spec.html

index d34653f2620f41a8d73e5f8a5ecd6aa0eb7c1986..5c62d384295044e0d01de4631f785d63588f5e2e 100644 (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
                        }