Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/goPublic

Commit75b71e8

Browse files
committed
[release-branch.go1] doc: Don't imply incorrect guarantees about data races.
««« backport dbcfb4459ab8doc: 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=rscCC=dvyukov, gobot, golang-dev, rhttps://golang.org/cl/6489075»»»
1 parentbc5b14d commit75b71e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎doc/go_mem.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ <h3>Channel communication</h3>
270270
<p>
271271
If the channel were buffered (e.g.,<code>c = make(chan int, 1)</code>)
272272
then the program would not be guaranteed to print
273-
<code>"hello, world"</code>. (It might print the empty string;
274-
it cannot print<code>"goodbye, universe"</code>, nor can it crash.)
273+
<code>"hello, world"</code>. (It might print the empty string,
274+
crash, or do something else.)
275275
</p>
276276

277277
<h3>Locks</h3>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp