Skip to content

Commit 50c5b53

Browse files
committed
Fix typo in TestNonColorableNil
1 parent 603fb50 commit 50c5b53

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎colorable_test.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,17 @@ func TestNonColorable(t *testing.T) {
4848
}
4949

5050
func TestNonColorableNil(t *testing.T) {
51-
paniced := false
51+
panicked := false
5252
func() {
5353
defer func() {
5454
recover()
55-
paniced = true
55+
panicked = true
5656
}()
5757
NewNonColorable(nil)
5858
NewColorable(nil)
5959
}()
6060

61-
if !paniced {
61+
if !panicked {
6262
t.Fatalf("should panic")
6363
}
6464
}

0 commit comments

Comments
 (0)