all: go fmt ./... with go1.19 (#110)

This commit is contained in:
eNV25
2022-08-05 20:14:45 +04:00
committed by GitHub
parent f9aa9cb571
commit 976602f5dc
7 changed files with 35 additions and 35 deletions

View File

@@ -49,13 +49,13 @@ func (f *Float64) Sub(delta float64) float64 {
// but CAS allows a stored NaN to compare equal to a passed in NaN.
// This avoids typical CAS loops from blocking forever, e.g.,
//
// for {
// old := atom.Load()
// new = f(old)
// if atom.CAS(old, new) {
// break
// }
// }
// for {
// old := atom.Load()
// new = f(old)
// if atom.CAS(old, new) {
// break
// }
// }
//
// If CAS did not match NaN to match, then the above would loop forever.
func (f *Float64) CAS(old, new float64) (swapped bool) {