From 120f3b7b9d08f05950fd57f25a48adbde877c099 Mon Sep 17 00:00:00 2001 From: "David G. Andersen" Date: Thu, 10 Nov 2011 14:41:24 -0500 Subject: [PATCH] math/big: Correcting typo in SetBit() documentation z is set to x+bit change, not z+bit change R=golang-dev CC=golang-dev https://golang.org/cl/5374056 --- src/pkg/math/big/int.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/math/big/int.go b/src/pkg/math/big/int.go index 533a97f749..2558be5805 100644 --- a/src/pkg/math/big/int.go +++ b/src/pkg/math/big/int.go @@ -685,7 +685,7 @@ func (z *Int) Bit(i int) uint { return z.abs.bit(uint(i)) } -// SetBit sets the i'th bit of z to bit and returns z. +// 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, // SetBit will panic. -- 2.50.0