mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
delete float, complex - code changes
also: cmplx -> complex float64(1.0) -> 1.0 float64(1) -> 1.0 R=gri, r, gri1, r2 CC=golang-dev https://golang.org/cl/3991043
This commit is contained in:
parent
0849944694
commit
f2b5a07453
122 changed files with 3309 additions and 3523 deletions
|
|
@ -749,7 +749,7 @@ func (d *decodeState) literalInterface() interface{} {
|
|||
}
|
||||
n, err := strconv.Atof64(string(item))
|
||||
if err != nil {
|
||||
d.saveError(&UnmarshalTypeError{"number " + string(item), reflect.Typeof(float64(0))})
|
||||
d.saveError(&UnmarshalTypeError{"number " + string(item), reflect.Typeof(0.0)})
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue