Skip to content

Commit

Permalink
Fix typo in count.go (spf13#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
terorie authored and eparis committed Dec 12, 2018
1 parent aea12ed commit 916c5bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions count.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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)
Expand Down

0 comments on commit 916c5bf

Please sign in to comment.