diff --git a/roaring/roaring.go b/roaring/roaring.go index 47b743f22..157203c41 100644 --- a/roaring/roaring.go +++ b/roaring/roaring.go @@ -1773,6 +1773,9 @@ func (c *Container) optimize() { } } +// unionInPlace does not necessarily preserve container's N; it's expected +// to be used when running a sequence of unions, after which you should +// call Repair(). (As of this writing, that only matters for bitmaps.) func (c *Container) unionInPlace(other *Container) { switch c.containerType { case containerBitmap: