From: David Symonds Date: Mon, 10 Sep 2012 22:47:30 +0000 (+1000) Subject: doc: Don't imply incorrect guarantees about data races. X-Git-Tag: go1.1rc2~2489 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=aecf5033dfc972f9989b6681ab0f00e346c60e60;p=gostls13.git 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 --- diff --git a/doc/go_mem.html b/doc/go_mem.html index ece230638e..0b73e43c4a 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