mirror of
https://github.com/golang/go
synced 2024-11-13 17:50:23 -07:00
comment typos
Fixes #698. Fixes #699. R=rsc CC=golang-dev https://golang.org/cl/824041
This commit is contained in:
parent
a618df0f5b
commit
9ba5ec53ad
@ -205,7 +205,7 @@ Error:
|
|||||||
|
|
||||||
|
|
||||||
// SetBytes interprets b as the bytes of a big-endian, unsigned integer and
|
// SetBytes interprets b as the bytes of a big-endian, unsigned integer and
|
||||||
// sets x to that value.
|
// sets z to that value.
|
||||||
func (z *Int) SetBytes(b []byte) *Int {
|
func (z *Int) SetBytes(b []byte) *Int {
|
||||||
s := int(_S)
|
s := int(_S)
|
||||||
z.abs = makeN(z.abs, (len(b)+s-1)/s, false)
|
z.abs = makeN(z.abs, (len(b)+s-1)/s, false)
|
||||||
@ -264,8 +264,8 @@ func (z *Int) Bytes() []byte {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Len returns the length of the absolute value of x in bits. Zero is
|
// Len returns the length of the absolute value of z in bits. Zero is
|
||||||
// considered to have a length of one.
|
// considered to have a length of zero.
|
||||||
func (z *Int) Len() int {
|
func (z *Int) Len() int {
|
||||||
if len(z.abs) == 0 {
|
if len(z.abs) == 0 {
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user