]> Cypherpunks repositories - gostls13.git/commitdiff
math/big: fix doc typos.
authorShenghou Ma <minux.ma@gmail.com>
Tue, 15 Apr 2014 21:50:19 +0000 (14:50 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 15 Apr 2014 21:50:19 +0000 (14:50 -0700)
Fixes #7768.

LGTM=iant, gri
R=golang-codereviews, iant, gri
CC=golang-codereviews
https://golang.org/cl/87260043

src/pkg/math/big/rat.go

index 3cdb1d807f5dc4406eab1b9a70e4013a7396f45f..0fd19c6124bfbded341246107661b8f8619ab4df 100644 (file)
@@ -477,7 +477,7 @@ func (z *Rat) SetString(s string) (*Rat, bool) {
        return z, true
 }
 
-// String returns a string representation of z in the form "a/b" (even if b == 1).
+// String returns a string representation of x in the form "a/b" (even if b == 1).
 func (x *Rat) String() string {
        s := "/1"
        if len(x.b.abs) != 0 {
@@ -486,7 +486,7 @@ func (x *Rat) String() string {
        return x.a.String() + s
 }
 
-// RatString returns a string representation of z in the form "a/b" if b != 1,
+// RatString returns a string representation of x in the form "a/b" if b != 1,
 // and in the form "a" if b == 1.
 func (x *Rat) RatString() string {
        if x.IsInt() {
@@ -495,7 +495,7 @@ func (x *Rat) RatString() string {
        return x.String()
 }
 
-// FloatString returns a string representation of z in decimal form with prec
+// FloatString returns a string representation of x in decimal form with prec
 // digits of precision after the decimal point and the last digit rounded.
 func (x *Rat) FloatString(prec int) string {
        if x.IsInt() {