From: Andrew Gerrand Date: Tue, 23 Feb 2010 00:51:28 +0000 (-0800) Subject: go_mem: clarified unbuffered channel sync example X-Git-Tag: weekly.2010-02-23~9 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2551cf9d1a8760c187540224c5ed796aef7f2f7b;p=gostls13.git go_mem: clarified unbuffered channel sync example R=rsc CC=golang-dev https://golang.org/cl/218063 --- diff --git a/doc/go_mem.html b/doc/go_mem.html index ede79720a6..4772bc2178 100644 --- a/doc/go_mem.html +++ b/doc/go_mem.html @@ -190,7 +190,8 @@ the send on that channel completes.

-This program: +This program (as above, but with the send and receive statements swapped and +using an unbuffered channel):

@@ -222,7 +223,7 @@ before the print.
 If the channel were buffered (e.g., c = make(chan int, 1))
 then the program would not be guaranteed to print
 "hello, world".  (It might print the empty string;
-it cannot print "hello, sailor", nor can it crash.)
+it cannot print "goodbye, universe", nor can it crash.)
 

Locks