mirror of https://github.com/siddontang/go.git
fix a word spell
This commit is contained in:
parent
354e14e6c0
commit
c9455e0206
|
@ -121,7 +121,7 @@ func (s *AtomicString) Get() string {
|
||||||
return str
|
return str
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *AtomicString) CompareAndSwap(oldval, newval string) (swqpped bool) {
|
func (s *AtomicString) CompareAndSwap(oldval, newval string) (swapped bool) {
|
||||||
s.mu.Lock()
|
s.mu.Lock()
|
||||||
defer s.mu.Unlock()
|
defer s.mu.Unlock()
|
||||||
if s.str == oldval {
|
if s.str == oldval {
|
||||||
|
|
Loading…
Reference in New Issue