Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions bitlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 0 additions & 1 deletion bitlist64.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down