]> Cypherpunks repositories - gostls13.git/commitdiff
spec: add parens missing from "protect" example.
authorRob Pike <r@golang.org>
Tue, 5 Apr 2011 18:01:25 +0000 (11:01 -0700)
committerRob Pike <r@golang.org>
Tue, 5 Apr 2011 18:01:25 +0000 (11:01 -0700)
Fixes #1665.

R=gri
CC=golang-dev
https://golang.org/cl/4351051

doc/go_spec.html

index 3371483d5d0b5a357a83f66f462c555c3c7f0c72..f8fe5974a14bff2512bfb38faccd6c5672c6a5ac 100644 (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()
 }