docs: remove typo (#454)

* docs: remove typo

* Update mutexes.go

* feat: add changes

Co-authored-by: Javier Pacareu <jpacareu.meli@gmail.com>
This commit is contained in:
Javier Pacareu 2022-12-12 11:21:16 -03:00 committed by GitHub
parent f783c41698
commit 30a235b655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -56,7 +56,7 @@ func main() {
go doIncrement("a", 10000)
go doIncrement("b", 10000)
// Wait a for the goroutines to finish
// Wait for the goroutines to finish
wg.Wait()
fmt.Println(c.counters)
}

View File

@ -1,2 +1,2 @@
a437476f37f1f797e1bab491b3f2ac9b386f6700
Kr_cdza5vyz
d858d466e806a9dcb5992c8c2a3c6dc377a7a904
JU735qy2UmB

4
public/mutexes generated
View File

@ -44,7 +44,7 @@ to safely access data across multiple goroutines.</p>
</td>
<td class="code leading">
<a href="https://go.dev/play/p/Kr_cdza5vyz"><img title="Run code" src="play.png" class="run" /></a><img title="Copy code" src="clipboard.png" class="copy" />
<a href="https://go.dev/play/p/JU735qy2UmB"><img title="Run code" src="play.png" class="run" /></a><img title="Copy code" src="clipboard.png" class="copy" />
<pre class="chroma"><span class="kn">package</span> <span class="nx">main</span>
</pre>
</td>
@ -189,7 +189,7 @@ and two of them access the same counter.</p>
<tr>
<td class="docs">
<p>Wait a for the goroutines to finish</p>
<p>Wait for the goroutines to finish</p>
</td>
<td class="code">