cmd/guru: fix for prior submission (fix build)
Accidentally submitted wrong file version in https://go-review.googlesource.com/20719. TBR: adonovan Change-Id: I362ded51cf9cef8cb22faf6a2334ce01678d9f4e Reviewed-on: https://go-review.googlesource.com/20742 Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
ce9c53141f
commit
1431634c56
|
|
@ -658,9 +658,8 @@ func constValString(v exact.Value) string {
|
|||
if v.Kind() == exact.Float {
|
||||
// In go1.5, go/constant floating-point values are printed
|
||||
// as fractions. Make them appear as floating-point numbers.
|
||||
if f, ok := exact.Float64Val(v); ok {
|
||||
return fmt.Sprintf("%g", f)
|
||||
}
|
||||
f, _ := exact.Float64Val(v)
|
||||
return fmt.Sprintf("%g", f)
|
||||
}
|
||||
return v.String()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue