]> Cypherpunks repositories - gostls13.git/commitdiff
Fixed recover() documentation.
authorAnschel Schaffer-Cohen <anschelsc@gmail.com>
Fri, 12 Nov 2010 17:57:46 +0000 (09:57 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 12 Nov 2010 17:57:46 +0000 (09:57 -0800)
Added a "return" to the end of an example which previously threw a compile error if used.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/3052041

doc/go_spec.html

index 6c9283dd33f30fe3110799d3a0d70a1a1160c2c8..2b2817d9cbefa0d90f8fca1c2459d895f382a329 100644 (file)
@@ -4744,6 +4744,7 @@ func IsPrintable(s string) (ok bool) {
                // The return value will be true normally, false if a panic occurred.
        }()
        panicIfNotPrintable(s)  // will panic if validations fails.
+       return
 }
 </pre>