mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
bba8b89aa5
commit
c20a018d6f
2 changed files with 11 additions and 13 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue