From b6a62c2a613f1bbd81e4353d795f99e38df38505 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Fri, 6 Sep 2024 18:22:49 -0400 Subject: [PATCH] terminology fix --- bitset.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitset.go b/bitset.go index 26cd6e4..416406d 100644 --- a/bitset.go +++ b/bitset.go @@ -118,7 +118,7 @@ func wordsNeeded(i uint) int { } // wordsNeededUnbound calculates the number of words needed for i bits, possibly exceeding the capacity. -// This function is useful if you know that the capacity cannot be exceeded (e.g., you have an existing bitmap). +// This function is useful if you know that the capacity cannot be exceeded (e.g., you have an existing BitSet). func wordsNeededUnbound(i uint) int { return int((i + (wordSize - 1)) >> log2WordSize) } @@ -356,7 +356,7 @@ func (b *BitSet) InsertAt(idx uint) *BitSet { return b } -// String creates a string representation of the Bitmap +// String creates a string representation of the BitSet func (b *BitSet) String() string { // follows code from https://github.com/RoaringBitmap/roaring var buffer bytes.Buffer