mirror of
https://github.com/golang/go.git
synced 2025-10-28 23:34:13 +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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue