diff options
author | David Symonds <dsymonds@golang.org> | 2012-09-11 08:47:30 +1000 |
---|---|---|
committer | David Symonds <dsymonds@golang.org> | 2012-09-11 08:47:30 +1000 |
commit | aecf5033dfc972f9989b6681ab0f00e346c60e60 (patch) | |
tree | b725cd33fb2c47f591a9a5ff97dfaedf69d182a4 /doc | |
parent | 6c4645cffe6659580ddda68ee1fa032ff0c44886 (diff) | |
download | go-git-aecf5033dfc972f9989b6681ab0f00e346c60e60.tar.gz |
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')
-rw-r--r-- | doc/go_mem.html | 4 |
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> |