From 916c5bf2d89aff6fd3e10e7811337218dfa81cb5 Mon Sep 17 00:00:00 2001 From: terorie Date: Wed, 12 Dec 2018 15:01:01 +0100 Subject: Fix typo in count.go (#196) --- count.go | 4 ++-- 1 file 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) -- cgit v1.2.3