From aecf5033dfc972f9989b6681ab0f00e346c60e60 Mon Sep 17 00:00:00 2001 From: David Symonds Date: Tue, 11 Sep 2012 08:47:30 +1000 Subject: [PATCH] doc: Don't imply incorrect guarantees about data races. A race between a = "hello, world" and print(a) is not guaranteed to print either "hello, world" or "". Its behaviour is undefined. Fixes #4039. R=rsc CC=dvyukov, gobot, golang-dev, r https://golang.org/cl/6489075 --- doc/go_mem.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/go_mem.html b/doc/go_mem.html index ece230638e7..0b73e43c4a9 100644 --- a/doc/go_mem.html +++ b/doc/go_mem.html @@ -270,8 +270,8 @@ 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 "goodbye, universe", nor can it crash.) +"hello, world". (It might print the empty string, +crash, or do something else.)

Locks