Fix typos in README

This commit is contained in:
Tevin Zhang 2020-07-16 13:57:01 +08:00
parent 17b218e8c9
commit cccf8069cb
No known key found for this signature in database
GPG Key ID: EE7DA2A50F0960FB
1 changed files with 3 additions and 3 deletions

View File

@ -14,10 +14,10 @@ import "github.com/tevino/abool"
cond := abool.New() // default to false cond := abool.New() // default to false
cond.Set() // Set to true cond.Set() // Sets to true
cond.IsSet() // Returns true cond.IsSet() // Returns true
cond.UnSet() // Set to false cond.UnSet() // Sets to false
cond.SetTo(any) // Set to whatever you want cond.SetTo(any) // Sets to whatever you want
cond.SetToIf(new, old) // Sets to `new` only if the Boolean matches the `old`, returns whether succeeded cond.SetToIf(new, old) // Sets to `new` only if the Boolean matches the `old`, returns whether succeeded
cond.Toggle() // Inverts the boolean then returns the value before inverting cond.Toggle() // Inverts the boolean then returns the value before inverting