From 4cdf2adbe509a669d4edee7ae1abe89ddca9534f Mon Sep 17 00:00:00 2001 From: Richard Artoul Date: Thu, 29 Nov 2018 15:33:26 -0500 Subject: [PATCH] fix comment --- roaring/roaring.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roaring/roaring.go b/roaring/roaring.go index 269f9ec57..aef03a82c 100644 --- a/roaring/roaring.go +++ b/roaring/roaring.go @@ -605,8 +605,8 @@ func (b *Bitmap) unionIntoTarget(target *Bitmap, others ...*Bitmap) { // Performing the popcount() operation with every union is wasteful because // its likely the value will be invalidated by the next union operation. As - // a result, when we're performing all our in-place unions, we don't repair - // the value of n (container cardinality), and then at the very end we perform + // a result, when we're performing all our in-place unions we allow the value of + // n (container cardinality) to fall out of sync, and then at the very end we perform // a "Repair" to recalculate all the container values. That way we never popcount() // an entire bitmap container more than once per bulk union operation. target.Containers.Repair()