]> Cypherpunks repositories - gostls13.git/commitdiff
math/big: Fix variable name in documentation for *Int.Bytes and BitLen.
authorKamil Kisiel <kamil@kamilkisiel.net>
Tue, 24 Sep 2013 23:32:23 +0000 (16:32 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 24 Sep 2013 23:32:23 +0000 (16:32 -0700)
R=golang-dev, iant, gri
CC=golang-dev
https://golang.org/cl/13869043

src/pkg/math/big/int.go

index 23c8bfeb2377a8cdf55f861e8bc422db951fd687..7bbb152d79cac16bc9cac3f3ca35a2f55306a19b 100644 (file)
@@ -563,13 +563,13 @@ func (z *Int) SetBytes(buf []byte) *Int {
        return z
 }
 
-// Bytes returns the absolute value of z as a big-endian byte slice.
+// Bytes returns the absolute value of x as a big-endian byte slice.
 func (x *Int) Bytes() []byte {
        buf := make([]byte, len(x.abs)*_S)
        return buf[x.abs.bytes(buf):]
 }
 
-// BitLen returns the length of the absolute value of z in bits.
+// BitLen returns the length of the absolute value of x in bits.
 // The bit length of 0 is 0.
 func (x *Int) BitLen() int {
        return x.abs.bitLen()