From 12e5dbcc1bd5c11d08abf84254f2e29b90ceab48 Mon Sep 17 00:00:00 2001 From: Samuel Stoltenberg Date: Sun, 3 Dec 2023 14:52:15 -0600 Subject: [PATCH] Fix misspellings --- command_test.go | 2 +- context.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/command_test.go b/command_test.go index 3aa2a45996..b3bcf8c562 100644 --- a/command_test.go +++ b/command_test.go @@ -341,7 +341,7 @@ func TestCommand_Run_CustomShellCompleteAcceptsMalformedFlags(t *testing.T) { }{ {testArgs: args{"--undefined"}, expectedOut: "found 0 args"}, {testArgs: args{"--number"}, expectedOut: "found 0 args"}, - {testArgs: args{"--number", "fourty-two"}, expectedOut: "found 0 args"}, + {testArgs: args{"--number", "forty-two"}, expectedOut: "found 0 args"}, {testArgs: args{"--number", "42"}, expectedOut: "found 0 args"}, {testArgs: args{"--number", "42", "newArg"}, expectedOut: "found 1 args"}, } diff --git a/context.go b/context.go index a45c120b55..8dd4765211 100644 --- a/context.go +++ b/context.go @@ -144,7 +144,7 @@ func (cCtx *Context) Lineage() []*Context { return lineage } -// Count returns the num of occurences of this flag +// Count returns the num of occurrences of this flag func (cCtx *Context) Count(name string) int { if fs := cCtx.lookupFlagSet(name); fs != nil { if cf, ok := fs.Lookup(name).Value.(Countable); ok {