mirror of
https://github.com/golang/go
synced 2024-11-24 22:57:57 -07:00
cmd/api: s/ideal-bool/bool/
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5674105
This commit is contained in:
parent
0e70f2722b
commit
95b0fe141c
@ -209,7 +209,7 @@ func (w *Walker) hardCodedConstantType(name string) (typ string, ok bool) {
|
||||
case "pkg syscall":
|
||||
switch name {
|
||||
case "darwinAMD64":
|
||||
return "ideal-bool", true
|
||||
return "bool", true
|
||||
}
|
||||
}
|
||||
return "", false
|
||||
@ -447,7 +447,7 @@ func (w *Walker) constValueType(vi interface{}) (string, error) {
|
||||
return "ideal-int", nil // hack.
|
||||
}
|
||||
if v.Name == "false" || v.Name == "true" {
|
||||
return "ideal-bool", nil
|
||||
return "bool", nil
|
||||
}
|
||||
if v.Name == "intSize" && w.curPackageName == "strconv" {
|
||||
// Hack.
|
||||
|
Loading…
Reference in New Issue
Block a user