Skip to content

Commit

Permalink
Fix typos in test and gen-atomicwrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Dec 18, 2024
1 parent df7bc75 commit c7d9c58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/gen-atomicwrapper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
//
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nocmp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}
}
Expand Down

0 comments on commit c7d9c58

Please sign in to comment.