diff --git a/doc/go_mem.html b/doc/go_mem.html index da45a07d7ab..906b858e88a 100644 --- a/doc/go_mem.html +++ b/doc/go_mem.html @@ -1,5 +1,14 @@ + +

Introduction

@@ -213,6 +222,17 @@ the corresponding receive on c completes, which happens before the print.

+

+The closing of a channel happens before a receive that returns a zero value +because the channel is closed. +

+ +

+In the previous example, replacing +c <- 0 with close(c) +yields a program with the same guaranteed behavior. +

+

A receive from an unbuffered channel happens before the send on that channel completes.