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:
parent
b910a27396
commit
44262d1574
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user