Skip to content

Commit 0bf5149

Browse files
authored
Fix spelling (#29)
1 parent 78f8f5f commit 0bf5149

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

fieldSetter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func setSlice(t reflect.Type, v reflect.Value, val string) error {
8787
)
8888

8989
if size == 0 {
90-
return fmt.Errorf("setSlice: got emtpy slice")
90+
return fmt.Errorf("setSlice: got empty slice")
9191
}
9292

9393
switch t.Elem().Kind() {

fieldStetter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ func TestSetValue_EmptySlice(t *testing.T) {
375375
testValue := " "
376376

377377
err := setValue(fieldType, fieldVal, testValue)
378-
assert(t, "setSlice: got emtpy slice", err.Error())
378+
assert(t, "setSlice: got empty slice", err.Error())
379379
}
380380

381381
func TestSetValue_Unsupported(t *testing.T) {

flagProvider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type FlagSet interface {
4949
}
5050

5151
// WithFlagSet allows the flag.FlagSet to be provided to NewFlagProvider.
52-
// This allows compatability with other flag parsing utilities.
52+
// This allows compatibility with other flag parsing utilities.
5353
func WithFlagSet(s FlagSet) FlagProviderOption {
5454
return func(fp *flagProvider) {
5555
fp.flagSet = s

0 commit comments

Comments
 (0)