mirror of https://github.com/golang/go.git
math/big: fix comment
The variable is named b not bit. R=golang-dev, agl CC=golang-dev https://golang.org/cl/7699043
This commit is contained in:
parent
960d7082ee
commit
65ed3f1073
|
|
@ -795,8 +795,8 @@ func (x *Int) Bit(i int) uint {
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetBit sets z to x, with x's i'th bit set to b (0 or 1).
|
// SetBit sets z to x, with x's i'th bit set to b (0 or 1).
|
||||||
// That is, if bit is 1 SetBit sets z = x | (1 << i);
|
// That is, if b is 1 SetBit sets z = x | (1 << i);
|
||||||
// if bit is 0 it sets z = x &^ (1 << i). If bit is not 0 or 1,
|
// if b is 0 SetBit sets z = x &^ (1 << i). If b is not 0 or 1,
|
||||||
// SetBit will panic.
|
// SetBit will panic.
|
||||||
func (z *Int) SetBit(x *Int, i int, b uint) *Int {
|
func (z *Int) SetBit(x *Int, i int, b uint) *Int {
|
||||||
if i < 0 {
|
if i < 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue