]> Cypherpunks repositories - gostls13.git/commitdiff
math/big: fix typo
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 9 Dec 2015 14:55:10 +0000 (14:55 +0000)
committerRobert Griesemer <gri@golang.org>
Wed, 9 Dec 2015 16:59:52 +0000 (16:59 +0000)
Found by github user asukakenji.

Change-Id: I4c76316b69e8a243fb6bf280283f3722e728d853
Reviewed-on: https://go-review.googlesource.com/17641
Reviewed-by: Robert Griesemer <gri@golang.org>
src/math/big/float.go

index ea2f516f844a46babc3ee3019c5212251e9e78bd..b1c748c9a54daea4ec257f7f1056af0d488b1517 100644 (file)
@@ -1123,7 +1123,7 @@ func (x *Float) Int(z *Int) (*Int, Accuracy) {
 
 // Rat returns the rational number corresponding to x;
 // or nil if x is an infinity.
-// The result is Exact is x is not an Inf.
+// The result is Exact if x is not an Inf.
 // If a non-nil *Rat argument z is provided, Rat stores
 // the result in z instead of allocating a new Rat.
 func (x *Float) Rat(z *Rat) (*Rat, Accuracy) {