summaryrefslogtreecommitdiff
path: root/src/pkg/math/big/int.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/math/big/int.go')
-rw-r--r--src/pkg/math/big/int.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/math/big/int.go b/src/pkg/math/big/int.go
index 23c8bfeb2..7bbb152d7 100644
--- a/src/pkg/math/big/int.go
+++ b/src/pkg/math/big/int.go
@@ -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()