]> Cypherpunks repositories - gostls13.git/commit
doc: allow buffered channel as semaphore without initialization
authorRuss Cox <rsc@golang.org>
Mon, 24 Mar 2014 23:11:21 +0000 (19:11 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 24 Mar 2014 23:11:21 +0000 (19:11 -0400)
commit132e816734de8cb7d5c52ca3a5a707135fc81075
tree69465d7625d04787f1bdb5daa8e43e6fa60b8a01
parent833dae6d26c56bde5fbae27fde0cdc6efa63fefa
doc: allow buffered channel as semaphore without initialization

This rule not existing has been the source of many discussions
on golang-dev and on issues. We have stated publicly that it is
true, but we have never written it down. Write it down.

Fixes #6242.

LGTM=r, dan.kortschak, iant, dvyukov
R=golang-codereviews, r, dominik.honnef, dvyukov, dan.kortschak, iant, 0xjnml
CC=golang-codereviews
https://golang.org/cl/75130045
doc/effective_go.html
doc/go_mem.html