]> Cypherpunks repositories - gostls13.git/commitdiff
math/big: fix doc comments
authorRobert Griesemer <gri@golang.org>
Tue, 7 Oct 2014 17:56:58 +0000 (10:56 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 7 Oct 2014 17:56:58 +0000 (10:56 -0700)
Fixes #8904.

TBR=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/148650043

src/math/big/int.go
src/math/big/rat.go

index 3998652e9345a93bced575c0c45c536bbbc1caa6..fc53719d710a7fe4a8632945fa6f7379474a5af0 100644 (file)
@@ -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)
index e6ab0bb483433fcc59cab096adb8ba293d005521..0bcec30252f2decb546938eb1791e12ef69a925f 100644 (file)
@@ -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)