Run tools/build again
This commit is contained in:
parent
8e17cca56d
commit
e988ebce0c
12
public/atomic-counters
generated
12
public/atomic-counters
generated
@ -46,7 +46,7 @@ counters</em> accessed by multiple goroutines.</p>
|
||||
|
||||
</td>
|
||||
<td class="code leading">
|
||||
<a href="https://go.dev/play/p/C8TGF0qyop5"><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/5vAUgPMebQw"><img title="Run code" src="play.png" class="run" /></a><img title="Copy code" src="clipboard.png" class="copy" />
|
||||
<pre class="chroma"><code><span class="line"><span class="cl"><span class="kn">package</span> <span class="nx">main</span></span></span></code></pre>
|
||||
</td>
|
||||
</tr>
|
||||
@ -114,10 +114,7 @@ counter exactly 1000 times.</p>
|
||||
|
||||
<tr>
|
||||
<td class="docs">
|
||||
<p>To atomically increment the counter we use <code>Add</code>,
|
||||
giving it the memory address of our <code>ops</code> counter
|
||||
with the <code>&</code> syntax.</p>
|
||||
|
||||
|
||||
</td>
|
||||
<td class="code leading">
|
||||
|
||||
@ -128,7 +125,10 @@ with the <code>&</code> syntax.</p>
|
||||
|
||||
<tr>
|
||||
<td class="docs">
|
||||
|
||||
<p>To atomically increment the counter we use <code>Add</code>,
|
||||
giving it the memory address of our <code>ops</code> counter
|
||||
with the <code>&</code> syntax.</p>
|
||||
|
||||
</td>
|
||||
<td class="code leading">
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user