aboutsummaryrefslogtreecommitdiff
path: root/count.go
diff options
context:
space:
mode:
authorTomas Aschan <[email protected]>2025-08-29 21:59:56 +0200
committerGitHub <[email protected]>2025-08-29 21:59:56 +0200
commitfd649b20e66a30631ee35bba78164180d02730d4 (patch)
tree321b27604470eed0b00615ea41f0f32f9bf8104a /count.go
parentd66f0ce2a7f887f0ff5f5af48649f3a01b3f0566 (diff)
parent1db553c27f5b9952dbb6484ed9999547b9e7dfb2 (diff)
Merge branch 'master' into fix-errhelp
Diffstat (limited to 'count.go')
-rw-r--r--count.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/count.go b/count.go
index a0b2679..d49c014 100644
--- a/count.go
+++ b/count.go
@@ -85,7 +85,7 @@ func (f *FlagSet) CountP(name, shorthand string, usage string) *int {
// 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 Count(name string, usage string) *int {
return CommandLine.CountP(name, "", usage)
}