mirror of
https://github.com/golang/go.git
synced 2025-05-16 04:44:39 +00: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":
|
case "pkg syscall":
|
||||||
switch name {
|
switch name {
|
||||||
case "darwinAMD64":
|
case "darwinAMD64":
|
||||||
return "ideal-bool", true
|
return "bool", true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "", false
|
return "", false
|
||||||
@ -447,7 +447,7 @@ func (w *Walker) constValueType(vi interface{}) (string, error) {
|
|||||||
return "ideal-int", nil // hack.
|
return "ideal-int", nil // hack.
|
||||||
}
|
}
|
||||||
if v.Name == "false" || v.Name == "true" {
|
if v.Name == "false" || v.Name == "true" {
|
||||||
return "ideal-bool", nil
|
return "bool", nil
|
||||||
}
|
}
|
||||||
if v.Name == "intSize" && w.curPackageName == "strconv" {
|
if v.Name == "intSize" && w.curPackageName == "strconv" {
|
||||||
// Hack.
|
// Hack.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user