]> Cypherpunks repositories - gostls13.git/commitdiff
doc: fix typos in Go memory model
authorDominik Honnef <dominik@honnef.co>
Fri, 10 Jun 2022 21:13:41 +0000 (23:13 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 10 Jun 2022 22:10:29 +0000 (22:10 +0000)
Change-Id: I8e94215d9bee0ea3ad378870fe565e961a9d80c9
Reviewed-on: https://go-review.googlesource.com/c/go/+/411595
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
doc/go_mem.html

index 59f9ab880dc749658abf90f445088863a1c70d6f..661e1e781cff60ac90138ad0bf5671ffa7a120f2 100644 (file)
@@ -85,7 +85,7 @@ the approach presented by Hans-J. Boehm and Sarita V. Adve in
 “<a href="https://www.hpl.hp.com/techreports/2008/HPL-2008-56.pdf">Foundations of the C++ Concurrency Memory Model</a>”,
 published in PLDI 2008.
 The definition of data-race-free programs and the guarantee of sequential consistency
-for race-free progams are equivalent to the ones in that work.
+for race-free programs are equivalent to the ones in that work.
 </p>
 
 <p>
@@ -205,7 +205,7 @@ by other languages, including C, C++, Java, JavaScript, Rust, and Swift.
 
 <p>
 Certain Go language operations such as goroutine creation and memory allocation
-act as synchronization opeartions.
+act as synchronization operations.
 The effect of these operations on the synchronized-before partial order
 is documented in the “Synchronization” section below.
 Individual packages are responsible for providing similar documentation