]> Cypherpunks repositories - gostls13.git/commit
spec: clarify receive operator
authorRobert Griesemer <gri@golang.org>
Mon, 25 Jun 2012 18:28:24 +0000 (11:28 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 25 Jun 2012 18:28:24 +0000 (11:28 -0700)
commit689931c5b02f7509a125f06480d3673ac85f21d5
tree54789fcf25b273318ca66843a8a7cedbd19a6bf6
parent277e7e57cadc08a2e82885b423308627e9e5c786
spec: clarify receive operator

- receiving from a closed channel returns immediately
- in the ,ok form, the 2nd result is of type bool, not
  just boolean (gc and ggcgo agree).

Per dsymonds' suggestion.

R=r, rsc, ken, iant, dsymonds
CC=golang-dev
https://golang.org/cl/6333057
doc/go_spec.html