1
0
mirror of https://github.com/golang/go synced 2024-11-21 14:34:41 -07:00

Fixed recover() documentation.

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
This commit is contained in:
Anschel Schaffer-Cohen 2010-11-12 09:57:46 -08:00 committed by Robert Griesemer
parent 8613eb56b2
commit 5083eedf88

View 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>