From: David Symonds Date: Fri, 21 Sep 2012 19:55:07 +0000 (+1000) Subject: [release-branch.go1] doc: Don't imply incorrect guarantees about data races. X-Git-Tag: go1.0.3~30 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=75b71e8cae2fd151f96717fc093b97cc6a6c3f19;p=gostls13.git [release-branch.go1] doc: Don't imply incorrect guarantees about data races. ««« backport dbcfb4459ab8 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