Skip to content

Commit

Permalink
Update README.md - replace deprecated CAS in example
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcipriano committed Jul 14, 2023
1 parent 1bc325e commit a6a6dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ provide a safer, more convenient API.
var atom atomic.Uint32
atom.Store(42)
atom.Sub(2)
atom.CAS(40, 11)
atom.CompareAndSwap(40, 11)
```

See the [documentation][doc] for a complete API specification.
Expand Down

0 comments on commit a6a6dbf

Please sign in to comment.