From 7fc341e52cb1cbaa7a26c3a3eb96795cb1b32634 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Tue, 16 Jan 2024 18:01:04 +0200 Subject: [PATCH] devs: fix typo in testdata for gochecknoglobals (#4320) --- test/testdata/gochecknoglobals.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testdata/gochecknoglobals.go b/test/testdata/gochecknoglobals.go index e16facc2..4d4a60cf 100644 --- a/test/testdata/gochecknoglobals.go +++ b/test/testdata/gochecknoglobals.go @@ -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" )