mirror of
https://github.com/golang/go
synced 2024-11-24 08:10:09 -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:
parent
9997dae7a3
commit
7757fcc17a
@ -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 }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user