go /
blog /
0f0b22bf6b51c0cfe8f13bd5815143fa4e75b1b8 content: fix example in "Go concurrency patterns" article
To quote Tim Scheuermann, who alerted me to this issue:
The text states that the channel should be buffered for the last
example to work, but the channel is already buffered. I tried to
use the codereview tool to commit the patch, but it refuses to
work on a github repository. The fix is trivial, remove the
buffer from line 2 of the example.
Thanks to Ivan Kurnosov for finding it in the first place.
Change-Id: I003f1fc0cbbb645be776eeb55d46ee3462fdf4d7
Reviewed-on: https://go-review.googlesource.com/36670
Reviewed-by: Chris Broadfoot <cbro@golang.org>
1 file changed