Skip to content

Commit

Permalink
terminology fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Sep 6, 2024
1 parent 08d15d2 commit b6a62c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bitset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b6a62c2

Please sign in to comment.