mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 10 additions and 10 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue