]> Cypherpunks repositories - gostls13.git/commitdiff
doc: fix typo in go_for_cpp_programmers.html
authorAndrew Gerrand <adg@golang.org>
Fri, 17 Sep 2010 02:39:01 +0000 (12:39 +1000)
committerAndrew Gerrand <adg@golang.org>
Fri, 17 Sep 2010 02:39:01 +0000 (12:39 +1000)
R=rsc, gri
CC=golang-dev
https://golang.org/cl/2191043

doc/go_for_cpp_programmers.html

index 33e34124212d1d5c2ba10a4f3f32c93f8546ec26..fae2ec44e6455eb112e1316b4fb7d2c030871308 100644 (file)
@@ -668,7 +668,7 @@ func manager(ch chan cmd) {
        var val int = 0
        for {
                c := &lt;- ch
-               if c.get { c.val = val ch &lt;- c }
+               if c.get { c.val = val; ch &lt;- c }
                else { val = c.val }
        }
 }