Commit e6b1d424 authored by Rob Pike's avatar Rob Pike

spec: add parens missing from "protect" example.

Fixes #1665.

R=gri
CC=golang-dev
https://golang.org/cl/4351051
parent de3aac60
<!-- 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()) { ...@@ -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()
} }
......
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