diff --git a/examples/atomic-counters/atomic-counters.go b/examples/atomic-counters/atomic-counters.go index 72f2396..0f3a52e 100644 --- a/examples/atomic-counters/atomic-counters.go +++ b/examples/atomic-counters/atomic-counters.go @@ -15,7 +15,7 @@ func main() { // We'll use an unsigned integer to represent our // (always-positive) counter. - var ops uint64 = 0 + var ops uint64 // To simulate concurrent updates, we'll start 50 // goroutines that each increment the counter about diff --git a/examples/mutexes/mutexes.go b/examples/mutexes/mutexes.go index c2068b2..20dab28 100644 --- a/examples/mutexes/mutexes.go +++ b/examples/mutexes/mutexes.go @@ -23,8 +23,8 @@ func main() { // We'll keep track of how many read and write // operations we do. - var readOps uint64 = 0 - var writeOps uint64 = 0 + var readOps uint64 + var writeOps uint64 // Here we start 100 goroutines to execute repeated // reads against the state, once per millisecond in diff --git a/examples/stateful-goroutines/stateful-goroutines.go b/examples/stateful-goroutines/stateful-goroutines.go index eb2ff79..20b0923 100644 --- a/examples/stateful-goroutines/stateful-goroutines.go +++ b/examples/stateful-goroutines/stateful-goroutines.go @@ -37,8 +37,8 @@ type writeOp struct { func main() { // As before we'll count how many operations we perform. - var readOps uint64 = 0 - var writeOps uint64 = 0 + var readOps uint64 + var writeOps uint64 // The `reads` and `writes` channels will be used by // other goroutines to issue read and write requests,