1
0
mirror of https://github.com/golang/go synced 2024-11-21 14:54:40 -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:
Rob Pike 2011-04-05 11:01:25 -07:00
parent de3aac609c
commit e6b1d424c4

View File

@ -1,5 +1,5 @@
<!-- title The Go Programming Language Specification -->
<!-- subtitle Version of March 28, 2011 -->
<!-- subtitle Version of Apr 5, 2011 -->
<!--
TODO
@ -4695,7 +4695,7 @@ func protect(g func()) {
if x := recover(); x != nil {
log.Printf("run time panic: %v", x)
}
}
}()
log.Println("start")
g()
}