mirror of
https://github.com/golang/go
synced 2024-11-24 18:10:02 -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:
parent
8613eb56b2
commit
5083eedf88
@ -4744,6 +4744,7 @@ func IsPrintable(s string) (ok bool) {
|
|||||||
// The return value will be true normally, false if a panic occurred.
|
// The return value will be true normally, false if a panic occurred.
|
||||||
}()
|
}()
|
||||||
panicIfNotPrintable(s) // will panic if validations fails.
|
panicIfNotPrintable(s) // will panic if validations fails.
|
||||||
|
return
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user