diff options
author | Sean Liao <sean@liao.dev> | 2022-05-23 23:52:21 +0100 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2022-05-24 19:45:14 +0000 |
commit | 0a30cf9536f06d52a214370e9eeb03f8bcfc1e6a (patch) | |
tree | 603d2a40b5d2bd8a988f9769a7cad6dd4de12362 /src/builtin | |
parent | d5ae7a64876630ab40f7bd04fdb5ad6a3733dae7 (diff) | |
download | go-0a30cf9536f06d52a214370e9eeb03f8bcfc1e6a.tar.gz go-0a30cf9536f06d52a214370e9eeb03f8bcfc1e6a.zip |
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>
Diffstat (limited to 'src/builtin')
-rw-r--r-- | src/builtin/builtin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/builtin/builtin.go b/src/builtin/builtin.go index e3e4df9de6..7feb209bb4 100644 --- a/src/builtin/builtin.go +++ b/src/builtin/builtin.go @@ -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 |