From 2551cf9d1a8760c187540224c5ed796aef7f2f7b Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Mon, 22 Feb 2010 16:51:28 -0800 Subject: [PATCH] go_mem: clarified unbuffered channel sync example R=rsc CC=golang-dev https://golang.org/cl/218063 --- doc/go_mem.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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

-- 2.50.0