FAQ
Reviewers: golang-dev_googlegroups.com,

Message:
Hello golang-dev@googlegroups.com,

I'd like you to review this change to
https://go.googlecode.com/hg/


Description:
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.

Please review this at http://codereview.appspot.com/6489075/

Affected files:
M doc/go_mem.html


Index: doc/go_mem.html
===================================================================
--- a/doc/go_mem.html
+++ b/doc/go_mem.html
@@ -270,8 +270,8 @@
<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,
+<code>"goodbye, universe"</code>, or crash.)
</p>

<h3>Locks</h3>

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedSep 4, '12 at 1:18a
activeSep 10, '12 at 10:48p
posts11
users5
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase