diff --git a/internal/gen-atomicwrapper/main.go b/internal/gen-atomicwrapper/main.go index 982254d..722ace1 100644 --- a/internal/gen-atomicwrapper/main.go +++ b/internal/gen-atomicwrapper/main.go @@ -33,7 +33,7 @@ // gen-atomicwrapper -name String -wrapped Value \ // -type string -pack fromString -unpack tostring // -// This wil generate approximately, +// This will generate approximately, // // type String struct{ v Value } // @@ -134,7 +134,7 @@ func run(args []string) error { flag.BoolVar(&opts.Swap, "swap", false, "generate a `Swap(new) old` method; requires -pack and -unpack") flag.BoolVar(&opts.JSON, "json", false, - "generate `MarshalJSON/UnmarshJSON` methods") + "generate `MarshalJSON/UnmarshalJSON` methods") if err := flag.Parse(args); err != nil { return err diff --git a/nocmp_test.go b/nocmp_test.go index 8719421..fe712a2 100644 --- a/nocmp_test.go +++ b/nocmp_test.go @@ -69,7 +69,7 @@ func TestNocmpComparability(t *testing.T) { t.Run(tt.desc, func(t *testing.T) { typ := reflect.TypeOf(tt.give) assert.Equalf(t, tt.comparable, typ.Comparable(), - "type %v comparablity mismatch", typ) + "type %v comparability mismatch", typ) }) } }