From: Shenghou Ma Date: Tue, 15 Apr 2014 21:50:19 +0000 (-0700) Subject: math/big: fix doc typos. X-Git-Tag: go1.3beta1~75 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0a96d64c9c20afb1d47cb464fdcd978e181d5a48;p=gostls13.git math/big: fix doc typos. Fixes #7768. LGTM=iant, gri R=golang-codereviews, iant, gri CC=golang-codereviews https://golang.org/cl/87260043 --- diff --git a/src/pkg/math/big/rat.go b/src/pkg/math/big/rat.go index 3cdb1d807f..0fd19c6124 100644 --- a/src/pkg/math/big/rat.go +++ b/src/pkg/math/big/rat.go @@ -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() {