Commit f14c29a3 authored by Robert Griesemer's avatar Robert Griesemer

go spec: minor clarification on channel types

No language change.

R=r, rsc, iant, ken2, r2
CC=golang-dev
https://golang.org/cl/4168050
parent ec487e3d
<!-- title The Go Programming Language Specification --> <!-- title The Go Programming Language Specification -->
<!-- subtitle Version of February 8, 2011 --> <!-- subtitle Version of February 15, 2011 -->
<!-- <!--
TODO TODO
...@@ -1227,9 +1227,11 @@ make(chan int, 100) ...@@ -1227,9 +1227,11 @@ make(chan int, 100)
<p> <p>
The capacity, in number of elements, sets the size of the buffer in the channel. If the The capacity, in number of elements, sets the size of the buffer in the channel. If the
capacity is greater than zero, the channel is asynchronous: provided the capacity is greater than zero, the channel is asynchronous: communication operations
buffer is not full, sends can succeed without blocking. If the capacity is zero succeed without blocking if the buffer is not full (sends) or not empty (receives),
or absent, the communication succeeds only when both a sender and receiver are ready. and elements are received in the order they are sent.
If the capacity is zero or absent, the communication succeeds only when both a sender and
receiver are ready.
</p> </p>
<p> <p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment