Skip to content

Commit 7fc341e

Browse files
authored
devs: fix typo in testdata for gochecknoglobals (#4320)
1 parent ad4a6b2 commit 7fc341e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/testdata/gochecknoglobals.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var noGlobalsVar int // want "noGlobalsVar is a global variable"
1111
var ErrSomeType = errors.New("test that global errors aren't warned")
1212

1313
var (
14-
OnlyDigites = regexp.MustCompile(`^\d+$`)
14+
OnlyDigits = regexp.MustCompile(`^\d+$`)
1515
BadNamedErr = errors.New("this is bad") // want "BadNamedErr is a global variable"
1616
)
1717

0 commit comments

Comments
 (0)