1
0
mirror of https://github.com/siddontang/go.git synced 2025-04-24 13:48:52 +08:00

Merge pull request #3 from nkysg/master

This commit is contained in:
siddontang 2016-09-04 13:04:34 +08:00 committed by GitHub
commit a30862d58d

View File

@ -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 {