From 75b71e8cae2fd151f96717fc093b97cc6a6c3f19 Mon Sep 17 00:00:00 2001 From: David Symonds Date: Sat, 22 Sep 2012 05:55:07 +1000 Subject: [release-branch.go1] doc: Don't imply incorrect guarantees about data races. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ««« 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 »»» --- 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 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

-- cgit v1.2.3-54-g00ecf