Skip to content

Commit

Permalink
Fix typo in "Targeting Go versions"
Browse files Browse the repository at this point in the history
  • Loading branch information
arjan-bal authored and dominikh committed Oct 17, 2024
1 parent f6581d9 commit e91ecad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/content/docs/running-staticcheck/cli/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Some of Staticcheck's analyses adjust their behavior based on the targeted Go ve
For example, the suggestion that one use `for range xs` instead of `for _ = range xs` only applies to Go 1.4 and later, as it won't compile with versions of Go older than that.

By default, Staticcheck targets the Go version declared in `go.mod` via the `go` directive.
For Go 1.21 and never, that directive specifies the minimum required version of Go.
For Go 1.21 and newer, that directive specifies the minimum required version of Go.

For older versions of Go, the directive technically specifies the maximum version of language features that the module
can use, which means it might be higher than the minimum required version. In those cases, you can manually overwrite
Expand Down

0 comments on commit e91ecad

Please sign in to comment.