devs: fix typo in testdata for gochecknoglobals (#4320)

This commit is contained in:
Oleksandr Redko 2024-01-16 18:01:04 +02:00 committed by GitHub
parent ad4a6b2c03
commit 7fc341e52c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"
)