aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2012-09-22 05:55:07 +1000
committerDavid Symonds <dsymonds@golang.org>2012-09-22 05:55:07 +1000
commit75b71e8cae2fd151f96717fc093b97cc6a6c3f19 (patch)
tree028437da177f00b16221d904145ebed200228f8e
parentbc5b14d00ae08b96abafc46d663da5d0f9852a48 (diff)
downloadgo-75b71e8cae2fd151f96717fc093b97cc6a6c3f19.tar.gz
go-75b71e8cae2fd151f96717fc093b97cc6a6c3f19.zip
[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 »»»
-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>