]> Cypherpunks repositories - gostls13.git/commitdiff
math/big: fix comment
authorRuss Cox <rsc@golang.org>
Mon, 11 Mar 2013 14:20:33 +0000 (10:20 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 11 Mar 2013 14:20:33 +0000 (10:20 -0400)
The variable is named b not bit.

R=golang-dev, agl
CC=golang-dev
https://golang.org/cl/7699043

src/pkg/math/big/int.go

index bf2fd200926d2efb680b5d69b642c743125cb697..fd7f005c2418686245e07de19389e56c62583dbd 100644 (file)
@@ -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).
-// That is, if bit 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,
+// That is, if b is 1 SetBit sets z = x | (1 << i);
+// if b is 0 SetBit sets z = x &^ (1 << i). If b is not 0 or 1,
 // SetBit will panic.
 func (z *Int) SetBit(x *Int, i int, b uint) *Int {
        if i < 0 {