Commit 44262d15 authored by Charles L. Dorian's avatar Charles L. Dorian Committed by Andrew Gerrand

doc: fix typo in spec example code comment

R=r, golang-dev, adg
CC=golang-dev
https://golang.org/cl/5308071
parent b910a273
...@@ -4851,7 +4851,7 @@ run-time panics raised by <code>g</code>. ...@@ -4851,7 +4851,7 @@ run-time panics raised by <code>g</code>.
<pre> <pre>
func protect(g func()) { func protect(g func()) {
defer 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 { if x := recover(); x != nil {
log.Printf("run time panic: %v", x) log.Printf("run time panic: %v", x)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment