Skip to content

Commit f4c97c2

Browse files
committed
minor: fix typos in comments
1 parent 8a6c85f commit f4c97c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bool_func_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func TestBoolFuncCompat(t *testing.T) {
7575
args := []string{"--bflag", "--bflag=false", "--bflag=1", "--bflag=bar", "--bflag="}
7676

7777
// It turns out that, even though the function is called "BoolFunc",
78-
// the stanard flag package does not try to parse the value assigned to
78+
// the standard flag package does not try to parse the value assigned to
7979
// that cli flag as a boolean. The string provided on the command line is
8080
// passed as is to the callback.
8181
// e.g: with "--bflag=not_a_bool" on the command line, the FlagSet does not
@@ -106,7 +106,7 @@ func TestBoolFuncCompat(t *testing.T) {
106106
flagName := "bflag"
107107
args := []string{"--bflag", "--bflag=err", "--bflag=after"}
108108

109-
// test behavior of standard flag.Fset with an error triggere by the callback:
109+
// test behavior of standard flag.Fset with an error triggered by the callback:
110110
// (note: as can be seen in 'runCase()', if the callback sees "err" as a value
111111
// for the bool flag, it will return an error)
112112
stdFSet := flag.NewFlagSet("std test", flag.ContinueOnError)

func_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ func TestFuncCompat(t *testing.T) {
112112
flagName := "fnflag"
113113
args := []string{"--fnflag", "before", "--fnflag", "err", "--fnflag", "after"}
114114

115-
// test behavior of standard flag.Fset with an error triggere by the callback:
115+
// test behavior of standard flag.Fset with an error triggered by the callback:
116116
// (note: as can be seen in 'runCase()', if the callback sees "err" as a value
117-
// for the bool flag, it will return an error)
117+
// for the flag, it will return an error)
118118
stdFSet := flag.NewFlagSet("std test", flag.ContinueOnError)
119119
stdFSet.SetOutput(io.Discard) // suppress output
120120

0 commit comments

Comments
 (0)