From 1f1536c21f3b35aae3b6fd5ab2aeaac79cc31802 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Fri, 15 Sep 2023 09:58:46 -0700 Subject: [PATCH] channel: fix documentation of the Close method of Channel The comment incorrectly stated that Close affects both sends and receives, when in fact it only affects sends. The receives affected by Close are at the other end of the channel pair. Updates #108. --- channel/channel.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/channel/channel.go b/channel/channel.go index aa47583..18668c2 100644 --- a/channel/channel.go +++ b/channel/channel.go @@ -57,8 +57,7 @@ type Channel interface { // fetches a single complete record. Recv() ([]byte, error) - // Close shuts down the channel, after which no further records may be - // sent or received. + // Close shuts down the channel, after which no further records may be sent. Close() error }