aboutsummaryrefslogtreecommitdiff
path: root/src/math/big/float.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2015-02-25 10:20:28 -0800
committerRobert Griesemer <gri@golang.org>2015-02-25 23:10:14 +0000
commitc20a018d6f751ed59bbfd13f5eb4be2051fa6a77 (patch)
treeab3d6acfe80b149c2c967e22f300ab8052884923 /src/math/big/float.go
parentbba8b89aa5ee9ef9d6981deeac4dea5393c7d4ca (diff)
downloadgo-c20a018d6f751ed59bbfd13f5eb4be2051fa6a77.tar.xz
math/big: apply a round of go vet
Change-Id: Ie8310acc783659497e50dfe629f06d655b51d647 Reviewed-on: https://go-review.googlesource.com/5990 Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/math/big/float.go')
-rw-r--r--src/math/big/float.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/big/float.go b/src/math/big/float.go
index 29dbc0d8c2..adb914d30e 100644
--- a/src/math/big/float.go
+++ b/src/math/big/float.go
@@ -292,7 +292,7 @@ func validate(x *Float) {
if m == 0 {
// 0.0 or Inf
if x.exp != 0 && x.exp != infExp {
- panic(fmt.Sprintf("%empty matissa with invalid exponent %d", x.exp))
+ panic(fmt.Sprintf("empty matissa with invalid exponent %d", x.exp))
}
return
}
@@ -842,7 +842,7 @@ func (x *Float) Int(z *Int) (*Int, Accuracy) {
return z, acc
}
-// Rat returns the result of converting x into a quotient;
+// Rat returns the rational number corresponding to x;
// or nil if x is an infinity.
// If a non-nil *Rat argument z is provided, Rat stores
// the result in z instead of allocating a new Rat.