From c9455e02063abcd0ae68505fc15a377548b7fae2 Mon Sep 17 00:00:00 2001 From: nkysg Date: Sun, 4 Sep 2016 12:57:50 +0800 Subject: [PATCH] fix a word spell --- sync2/atomic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync2/atomic.go b/sync2/atomic.go index 424a974..382fc20 100644 --- a/sync2/atomic.go +++ b/sync2/atomic.go @@ -121,7 +121,7 @@ func (s *AtomicString) Get() string { return str } -func (s *AtomicString) CompareAndSwap(oldval, newval string) (swqpped bool) { +func (s *AtomicString) CompareAndSwap(oldval, newval string) (swapped bool) { s.mu.Lock() defer s.mu.Unlock() if s.str == oldval {