1
0
mirror of https://github.com/golang/go synced 2024-11-24 02:20:18 -07:00

doc: fix typo in spec example code comment

R=r, golang-dev, adg
CC=golang-dev
https://golang.org/cl/5308071
This commit is contained in:
Charles L. Dorian 2011-11-01 15:13:33 +09:00 committed by Andrew Gerrand
parent b910a27396
commit 44262d1574

View File

@ -4851,7 +4851,7 @@ run-time panics raised by <code>g</code>.
<pre>
func protect(g func()) {
defer func() {
log.Println("done") // Println executes normally even in there is a panic
log.Println("done") // Println executes normally even if there is a panic
if x := recover(); x != nil {
log.Printf("run time panic: %v", x)
}