mirror of
https://github.com/golang/go
synced 2024-11-25 03:57:56 -07:00
spec: add parens missing from "protect" example.
Fixes #1665. R=gri CC=golang-dev https://golang.org/cl/4351051
This commit is contained in:
parent
de3aac609c
commit
e6b1d424c4
@ -1,5 +1,5 @@
|
|||||||
<!-- title The Go Programming Language Specification -->
|
<!-- title The Go Programming Language Specification -->
|
||||||
<!-- subtitle Version of March 28, 2011 -->
|
<!-- subtitle Version of Apr 5, 2011 -->
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
TODO
|
TODO
|
||||||
@ -4695,7 +4695,7 @@ func protect(g func()) {
|
|||||||
if x := recover(); x != nil {
|
if x := recover(); x != nil {
|
||||||
log.Printf("run time panic: %v", x)
|
log.Printf("run time panic: %v", x)
|
||||||
}
|
}
|
||||||
}
|
}()
|
||||||
log.Println("start")
|
log.Println("start")
|
||||||
g()
|
g()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user