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
This commit is contained in:
Kamil Kisiel 2013-09-24 16:32:23 -07:00 committed by Robert Griesemer
parent 828a4b9376
commit b0ef6aeff9
1 changed files with 2 additions and 2 deletions

View 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()