devs: fix typo in testdata for gochecknoglobals (#4320)
This commit is contained in:
parent
ad4a6b2c03
commit
7fc341e52c
2
test/testdata/gochecknoglobals.go
vendored
2
test/testdata/gochecknoglobals.go
vendored
@ -11,7 +11,7 @@ var noGlobalsVar int // want "noGlobalsVar is a global variable"
|
||||
var ErrSomeType = errors.New("test that global errors aren't warned")
|
||||
|
||||
var (
|
||||
OnlyDigites = regexp.MustCompile(`^\d+$`)
|
||||
OnlyDigits = regexp.MustCompile(`^\d+$`)
|
||||
BadNamedErr = errors.New("this is bad") // want "BadNamedErr is a global variable"
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user