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:
Sean Liao 2022-05-23 23:52:21 +01:00 committed by Gopher Robot
parent d5ae7a6487
commit 0a30cf9536
1 changed files with 1 additions and 1 deletions

View File

@ -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