aboutsummaryrefslogtreecommitdiff
path: root/doc/go_mem.html
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2012-09-11 08:47:30 +1000
committerDavid Symonds <dsymonds@golang.org>2012-09-11 08:47:30 +1000
commitaecf5033dfc972f9989b6681ab0f00e346c60e60 (patch)
treeb725cd33fb2c47f591a9a5ff97dfaedf69d182a4 /doc/go_mem.html
parent6c4645cffe6659580ddda68ee1fa032ff0c44886 (diff)
downloadgo-aecf5033dfc972f9989b6681ab0f00e346c60e60.tar.gz
go-aecf5033dfc972f9989b6681ab0f00e346c60e60.zip
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
Diffstat (limited to 'doc/go_mem.html')
-rw-r--r--doc/go_mem.html4
1 files 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 <code>print</code>.
<p>
If the channel were buffered (e.g., <code>c = make(chan int, 1)</code>)
then the program would not be guaranteed to print
-<code>"hello, world"</code>. (It might print the empty string;
-it cannot print <code>"goodbye, universe"</code>, nor can it crash.)
+<code>"hello, world"</code>. (It might print the empty string,
+crash, or do something else.)
</p>
<h3>Locks</h3>