From: Dominik Honnef
Date: Fri, 10 Jun 2022 21:13:41 +0000 (+0200)
Subject: doc: fix typos in Go memory model
X-Git-Tag: go1.19rc1~143
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ff3db8d12d8e2eacde7eccd47ea4f3e3dd5a6807;p=gostls13.git
doc: fix typos in Go memory model
Change-Id: I8e94215d9bee0ea3ad378870fe565e961a9d80c9
Reviewed-on: https://go-review.googlesource.com/c/go/+/411595
Reviewed-by: Ian Lance Taylor
Auto-Submit: Ian Lance Taylor
Run-TryBot: Ian Lance Taylor
TryBot-Result: Gopher Robot
Reviewed-by: Dmitri Shuralyov
---
diff --git a/doc/go_mem.html b/doc/go_mem.html
index 59f9ab880d..661e1e781c 100644
--- a/doc/go_mem.html
+++ b/doc/go_mem.html
@@ -85,7 +85,7 @@ the approach presented by Hans-J. Boehm and Sarita V. Adve in
âFoundations of the C++ Concurrency Memory Modelâ,
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.
@@ -205,7 +205,7 @@ by other languages, including C, C++, Java, JavaScript, Rust, and Swift.
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