Skip to content

Commit

Permalink
devs: fix typo in testdata for gochecknoglobals (#4320)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored Jan 16, 2024
1 parent ad4a6b2 commit 7fc341e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testdata/gochecknoglobals.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down

0 comments on commit 7fc341e

Please sign in to comment.