Skip to content

Commit 33d62b4

Browse files
authored
Fix typos in comments and test names (#317)
1 parent 0da1691 commit 33d62b4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

errors_go_other.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func (je joinedError) Is(err error) bool {
2222

2323
// wrappedErrors is a workaround for wrapping multiple errors in environments
2424
// where Go 1.20 is not available. It basically uses the already implemented
25-
// functionatlity of joinedError to handle multiple errors with supplies a
25+
// functionality of joinedError to handle multiple errors with supplies a
2626
// custom error message that is identical to the one we produce in Go 1.20 using
2727
// multiple %w directives.
2828
type wrappedErrors struct {

map_claims_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ func TestVerifyAud(t *testing.T) {
4646

4747
// []interface{}
4848
{Name: "Empty []interface{} Aud without match required", MapClaims: MapClaims{"aud": nilListInterface}, Expected: true, Required: false, Comparison: "example.com"},
49-
{Name: "[]interface{} Aud wit match required", MapClaims: MapClaims{"aud": []interface{}{"a", "foo", "example.com"}}, Expected: true, Required: true, Comparison: "example.com"},
50-
{Name: "[]interface{} Aud wit match but invalid types", MapClaims: MapClaims{"aud": []interface{}{"a", 5, "example.com"}}, Expected: false, Required: true, Comparison: "example.com"},
51-
{Name: "[]interface{} Aud int wit match required", MapClaims: MapClaims{"aud": intListInterface}, Expected: false, Required: true, Comparison: "example.com"},
49+
{Name: "[]interface{} Aud with match required", MapClaims: MapClaims{"aud": []interface{}{"a", "foo", "example.com"}}, Expected: true, Required: true, Comparison: "example.com"},
50+
{Name: "[]interface{} Aud with match but invalid types", MapClaims: MapClaims{"aud": []interface{}{"a", 5, "example.com"}}, Expected: false, Required: true, Comparison: "example.com"},
51+
{Name: "[]interface{} Aud int with match required", MapClaims: MapClaims{"aud": intListInterface}, Expected: false, Required: true, Comparison: "example.com"},
5252

5353
// interface{}
5454
{Name: "Empty interface{} Aud without match not required", MapClaims: MapClaims{"aud": nilInterface}, Expected: true, Required: false, Comparison: "example.com"},

0 commit comments

Comments
 (0)