]> Cypherpunks repositories - gostls13.git/commitdiff
doc/effective_go.html: fix syntax error in code example
authorShenghou Ma <minux.ma@gmail.com>
Tue, 23 Apr 2013 19:51:31 +0000 (03:51 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Tue, 23 Apr 2013 19:51:31 +0000 (03:51 +0800)
Fixes #5333.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/8698046

doc/effective_go.html

index 62851871c5fa8662e9164c9c80c3ebdd1e4303fe..e546c083b6d6e0fc18b16b509f75d4c8d1642f96 100644 (file)
@@ -2947,7 +2947,7 @@ func Serve(queue chan *Request) {
         go func() {
             process(req)
             sem &lt;- 1
-        }
+        }()
     }
 }</pre>