diff --git a/public/atomic-counters b/public/atomic-counters index 1369610..1e62f72 100644 --- a/public/atomic-counters +++ b/public/atomic-counters @@ -46,7 +46,7 @@ counters accessed by multiple goroutines.

- +
package main
@@ -114,10 +114,7 @@ counter exactly 1000 times.

-

To atomically increment the counter we use Add, -giving it the memory address of our ops counter -with the & syntax.

- + @@ -128,7 +125,10 @@ with the & syntax.

- +

To atomically increment the counter we use Add, +giving it the memory address of our ops counter +with the & syntax.

+