aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorterorie <[email protected]>2018-12-12 15:01:01 +0100
committerEric Paris <[email protected]>2018-12-12 09:01:01 -0500
commit916c5bf2d89aff6fd3e10e7811337218dfa81cb5 (patch)
treea650daf0d1affd53d9de93c69701df63df3ddd65
parentaea12ed6721610dc6ed40141676d7ab0a1dac9e9 (diff)
Fix typo in count.go (#196)
-rw-r--r--count.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/count.go b/count.go
index aa126e4..a0b2679 100644
--- a/count.go
+++ b/count.go
@@ -46,7 +46,7 @@ func (f *FlagSet) GetCount(name string) (int, error) {
// CountVar defines a count flag with specified name, default value, and usage string.
// The argument p points to an int variable in which to store the value of the flag.
-// A count flag will add 1 to its value evey time it is found on the command line
+// A count flag will add 1 to its value every time it is found on the command line
func (f *FlagSet) CountVar(p *int, name string, usage string) {
f.CountVarP(p, name, "", usage)
}
@@ -69,7 +69,7 @@ func CountVarP(p *int, name, shorthand string, usage string) {
// Count defines a count flag with specified name, default value, and usage string.
// The return value is the address of an int variable that stores the value of the flag.
-// A count flag will add 1 to its value evey time it is found on the command line
+// A count flag will add 1 to its value every time it is found on the command line
func (f *FlagSet) Count(name string, usage string) *int {
p := new(int)
f.CountVarP(p, name, "", usage)