From 799c1334700629c0ee528a84a539d2411d2ed050 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Tue, 16 Jan 2024 17:29:12 +0200 Subject: [PATCH] docs: fix typo in testdata for gochecknoglobals --- 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 e16facc26ca3..4d4a60cfc979 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" )