1
0
mirror of https://github.com/golang/go synced 2024-11-11 23:50:22 -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
for {
c := <- ch
if c.get { c.val = val ch <- c }
if c.get { c.val = val; ch <- c }
else { val = c.val }
}
}