From 8c929d12f45c853b91c1ed6ce7ab756bd3ba7eff Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Thu, 4 Jul 2024 14:44:52 -0400 Subject: [PATCH 1/2] fix for issue 162 --- bitset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitset.go b/bitset.go index 9f38ed3..4c57a49 100644 --- a/bitset.go +++ b/bitset.go @@ -737,7 +737,7 @@ func (b *BitSet) Intersection(compare *BitSet) (result *BitSet) { return } -// IntersectionCardinality computes the cardinality of the union +// IntersectionCardinality computes the cardinality of the intersection func (b *BitSet) IntersectionCardinality(compare *BitSet) uint { panicIfNull(b) panicIfNull(compare) From 67644e686bb4b1240a5032822ceaa4cbb7ff8d85 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Fri, 12 Jul 2024 08:11:12 -0400 Subject: [PATCH 2/2] [no-ci] typo --- bitset_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitset_test.go b/bitset_test.go index 96afd73..34d628a 100644 --- a/bitset_test.go +++ b/bitset_test.go @@ -129,7 +129,7 @@ func TestBitSetIsClear(t *testing.T) { } } -func TestExendOnBoundary(t *testing.T) { +func TestExtendOnBoundary(t *testing.T) { v := New(32) defer func() { if r := recover(); r != nil {