From d9f5c7317affb5722ce9a46572b33e1c1ba4064f Mon Sep 17 00:00:00 2001 From: rkapka Date: Mon, 27 Jan 2025 15:54:30 +0100 Subject: [PATCH] Fix comment for `SetBitAt` --- bitlist.go | 4 +--- bitlist64.go | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bitlist.go b/bitlist.go index 12395b9..84da288 100644 --- a/bitlist.go +++ b/bitlist.go @@ -42,9 +42,7 @@ func (b Bitlist) BitAt(idx uint64) bool { return b[idx/8]&i == i } -// SetBitAt will set the bit at the given index to the given value. If the index -// requested exceeds the number of bits in the bitlist, then this method returns -// false. +// SetBitAt will set the bit at the given index to the given value. func (b Bitlist) SetBitAt(idx uint64, val bool) { // Out of bounds, do nothing. upperBounds := b.Len() diff --git a/bitlist64.go b/bitlist64.go index 97b7614..a81bc96 100644 --- a/bitlist64.go +++ b/bitlist64.go @@ -81,7 +81,6 @@ func (b *Bitlist64) BitAt(idx uint64) bool { } // SetBitAt will set the bit at the given index to the given value. -// If the index requested exceeds the number of bits in the bitlist, then this method returns false. func (b *Bitlist64) SetBitAt(idx uint64, val bool) { // Out of bounds, do nothing. if idx >= b.size {