diff options
author | Robert Griesemer <gri@golang.org> | 2014-10-07 10:56:58 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2014-10-07 10:56:58 -0700 |
commit | 70df1111b1bdba591f02e6ca0628a0a73c6427d6 (patch) | |
tree | 8ad652d2d9ed8f410c0722de811185e35c8bf9fa /src/math | |
parent | 5cf79841e10a5ec2d03a32ea3a40c9932cb843eb (diff) | |
download | go-70df1111b1bdba591f02e6ca0628a0a73c6427d6.tar.gz |
math/big: fix doc comments
Fixes issue 8904.
TBR=iant
R=iant
CC=golang-codereviews
https://codereview.appspot.com/148650043
Diffstat (limited to 'src/math')
-rw-r--r-- | src/math/big/int.go | 4 | ||||
-rw-r--r-- | src/math/big/rat.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/math/big/int.go b/src/math/big/int.go index 3998652e9..fc53719d7 100644 --- a/src/math/big/int.go +++ b/src/math/big/int.go @@ -1016,12 +1016,12 @@ func (z *Int) UnmarshalJSON(text []byte) error { return nil } -// MarshalText implements the encoding.TextMarshaler interface +// MarshalText implements the encoding.TextMarshaler interface. func (z *Int) MarshalText() (text []byte, err error) { return []byte(z.String()), nil } -// UnmarshalText implements the encoding.TextUnmarshaler interface +// UnmarshalText implements the encoding.TextUnmarshaler interface. func (z *Int) UnmarshalText(text []byte) error { if _, ok := z.SetString(string(text), 0); !ok { return fmt.Errorf("math/big: cannot unmarshal %q into a *big.Int", text) diff --git a/src/math/big/rat.go b/src/math/big/rat.go index e6ab0bb48..0bcec3025 100644 --- a/src/math/big/rat.go +++ b/src/math/big/rat.go @@ -699,12 +699,12 @@ func (z *Rat) GobDecode(buf []byte) error { return nil } -// MarshalText implements the encoding.TextMarshaler interface +// MarshalText implements the encoding.TextMarshaler interface. func (r *Rat) MarshalText() (text []byte, err error) { return []byte(r.RatString()), nil } -// UnmarshalText implements the encoding.TextUnmarshaler interface +// UnmarshalText implements the encoding.TextUnmarshaler interface. func (r *Rat) UnmarshalText(text []byte) error { if _, ok := r.SetString(string(text)); !ok { return fmt.Errorf("math/big: cannot unmarshal %q into a *big.Rat", text) |