1
0
mirror of https://github.com/golang/go synced 2024-11-26 04:58:00 -07:00

fix comparison

This commit is contained in:
Alex Bozhenko 2024-02-07 07:13:05 -08:00
parent 284d4333e7
commit b41219c975

View File

@ -24,7 +24,7 @@ var buildtagFix = fix{
}
func buildtag(f *ast.File) bool {
if version.Compare(*goVersion, buildtagGoVersionCutoff) == -1 {
if version.Compare(*goVersion, buildtagGoVersionCutoff) < 0 {
return false
}