Commit b0ef6aef authored by Kamil Kisiel's avatar Kamil Kisiel Committed by Robert Griesemer

math/big: Fix variable name in documentation for *Int.Bytes and BitLen.

R=golang-dev, iant, gri
CC=golang-dev
https://golang.org/cl/13869043
parent 828a4b93
...@@ -563,13 +563,13 @@ func (z *Int) SetBytes(buf []byte) *Int { ...@@ -563,13 +563,13 @@ func (z *Int) SetBytes(buf []byte) *Int {
return z 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 { func (x *Int) Bytes() []byte {
buf := make([]byte, len(x.abs)*_S) buf := make([]byte, len(x.abs)*_S)
return buf[x.abs.bytes(buf):] 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. // The bit length of 0 is 0.
func (x *Int) BitLen() int { func (x *Int) BitLen() int {
return x.abs.bitLen() return x.abs.bitLen()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment