summaryrefslogtreecommitdiff
path: root/libgo/go/math/big/ftoa.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/math/big/ftoa.go')
-rw-r--r--libgo/go/math/big/ftoa.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgo/go/math/big/ftoa.go b/libgo/go/math/big/ftoa.go
index 57b16e1ad1f..d2a85886c72 100644
--- a/libgo/go/math/big/ftoa.go
+++ b/libgo/go/math/big/ftoa.go
@@ -376,6 +376,8 @@ func min(x, y int) int {
return y
}
+var _ fmt.Formatter = &floatZero // *Float must implement fmt.Formatter
+
// Format implements fmt.Formatter. It accepts all the regular
// formats for floating-point numbers ('b', 'e', 'E', 'f', 'F',
// 'g', 'G') as well as 'p' and 'v'. See (*Float).Text for the