1
0
mirror of https://github.com/golang/go synced 2024-11-21 20:44:39 -07:00

doc: fix typo in go_for_cpp_programmers.html

R=rsc, gri
CC=golang-dev
https://golang.org/cl/2191043
This commit is contained in:
Andrew Gerrand 2010-09-17 12:39:01 +10:00
parent 9997dae7a3
commit 7757fcc17a

View File

@ -668,7 +668,7 @@ func manager(ch chan cmd) {
var val int = 0 var val int = 0
for { for {
c := <- ch c := <- ch
if c.get { c.val = val ch <- c } if c.get { c.val = val; ch <- c }
else { val = c.val } else { val = c.val }
} }
} }