Skip to content

Commit 132f8df

Browse files
committed
Clean roaring64 golint comments
1 parent ce6964f commit 132f8df

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

roaring64/bsi64.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ func (b *BSI) SetBigValue(columnID uint64, value *big.Int) {
128128
b.eBM.Add(columnID)
129129
}
130130

131+
// SetBigMany sets value for all columns in foundSet.
131132
func (b *BSI) SetBigMany(foundSet *Bitmap, value *big.Int) {
132133
// If max/min values are set to zero then automatically determine bit array size
133134
if b.MaxValue == 0 && b.MinValue == 0 {

roaring64/roaring64.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,7 @@ func (rb *Bitmap) GetSerializedSizeInBytes() uint64 {
12411241
return rb.highlowcontainer.serializedSizeInBytes()
12421242
}
12431243

1244+
// Validate checks whether the bitmap's internal containers are coherent.
12441245
func (rb *Bitmap) Validate() error {
12451246
return rb.highlowcontainer.validate()
12461247
}

roaring64/roaringarray64.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ type roaringArray64 struct {
1414
}
1515

1616
var (
17-
ErrKeySortOrder = errors.New("keys were out of order")
17+
// ErrKeySortOrder reports that container keys are out of order.
18+
ErrKeySortOrder = errors.New("keys were out of order")
19+
// ErrCardinalityConstraint reports inconsistent array cardinality metadata.
1820
ErrCardinalityConstraint = errors.New("size of arrays was not coherent")
1921
)
2022

0 commit comments

Comments
 (0)