mirror of
https://github.com/golang/go
synced 2024-11-25 00:07:56 -07:00
goarch: remove variable shadowing in gengoarch
This commit is contained in:
parent
9f9dd2bfd8
commit
0df48d7e7d
@ -52,7 +52,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
fmt.Fprintf(&buf, "const Is%s = %d\n", strings.Title(goarch), value)
|
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 {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user