1
0
mirror of https://github.com/golang/go synced 2024-11-21 17:14:45 -07:00

goarch: remove variable shadowing in gengoarch

This commit is contained in:
JC Dansereau 2024-04-22 14:55:53 -04:00
parent 9f9dd2bfd8
commit 0df48d7e7d

View File

@ -52,7 +52,7 @@ func main() {
}
fmt.Fprintf(&buf, "const Is%s = %d\n", strings.Title(goarch), value)
}
err := os.WriteFile("zgoarch_"+target+".go", buf.Bytes(), 0666)
err = os.WriteFile("zgoarch_"+target+".go", buf.Bytes(), 0666)
if err != nil {
log.Fatal(err)
}