From b87acfe9bc727cba758bdcd956a1a20ad5b06b6d Mon Sep 17 00:00:00 2001 From: Lucas Rouckhout Date: Sun, 16 May 2021 15:13:06 +0200 Subject: [PATCH] Applied changes from golint --- bool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bool.go b/bool.go index 714da92..804ce54 100644 --- a/bool.go +++ b/bool.go @@ -73,13 +73,13 @@ func (ab *AtomicBool) SetToIf(old, new bool) (set bool) { return atomic.CompareAndSwapInt32((*int32)(ab), o, n) } -// Marshall behaves the same as if the AtomicBool is a builtin.bool. +// MarshalJSON behaves the same as if the AtomicBool is a builtin.bool. // NOTE: There's no lock during the process, usually it shouldn't be called with other methods in parallel. func (ab *AtomicBool) MarshalJSON() ([]byte, error) { return json.Marshal(ab.IsSet()) } -// Unmarshall behaves the same as if the AtomicBool is a builtin.bool. +// UnmarshalJSON behaves the same as if the AtomicBool is a builtin.bool. // NOTE: There's no lock during the process, usually it shouldn't be called with other methods in parallel. func (ab *AtomicBool) UnmarshalJSON(b []byte) error { var v bool