mirror of https://github.com/golang/go.git
builtin: clarify effect of close on receive
Fixes #53041 Change-Id: If6580c8f0f14edfdc297d3239a7767ce0570ff79 Reviewed-on: https://go-review.googlesource.com/c/go/+/407975 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Rob Pike <r@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
d5ae7a6487
commit
0a30cf9536
|
|
@ -236,7 +236,7 @@ func imag(c ComplexType) FloatType
|
|||
//
|
||||
// x, ok := <-c
|
||||
//
|
||||
// will also set ok to false for a closed channel.
|
||||
// will also set ok to false for a closed and empty channel.
|
||||
func close(c chan<- Type)
|
||||
|
||||
// The panic built-in function stops normal execution of the current
|
||||
|
|
|
|||
Loading…
Reference in New Issue