From ab5c762a4644c5701dfa14905802979b04cee4b0 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 31 May 2013 11:21:37 -0700 Subject: [PATCH] spec: better wording re: receiving from closed channels As suggested by ej@evanjones.ca. Fixes #5604. R=r CC=golang-dev https://golang.org/cl/9899043 --- doc/go_spec.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index b3134eed83..09bbb85f68 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -3301,9 +3301,8 @@ from the channel ch. The channel direction must permit receive oper and the type of the receive operation is the element type of the channel. The expression blocks until a value is available. Receiving from a nil channel blocks forever. -Receiving from a closed channel always succeeds, -immediately returning the element type's zero -value. +A receive operation on a closed channel can always proceed +immediately, yielding the element type's zero value.

-- 
2.48.1