You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
func main() {
val := []byte("...")
for _, c := range []rune(string(val[1 : len(val)-1])) {
_ = c
}
}
Two identical errors are given:
% staticcheck .
main.go:5:2: should range over string, not []rune(string) (S1029)
main.go:5:2: should range over string, not []rune(string) (SA6003)
Looking at the -explain for S1029 and SA6003, the checks seem very similar, if not outright identical? Either way, I wouldn't expect exactly duplicate errors.
For the code:
Two identical errors are given:
Looking at the -explain for S1029 and SA6003, the checks seem very similar, if not outright identical? Either way, I wouldn't expect exactly duplicate errors.
(From commit d00dea3, with Go 1.23.0)
The text was updated successfully, but these errors were encountered: