diff --git a/bitset.go b/bitset.go index ddfb516..8d42535 100644 --- a/bitset.go +++ b/bitset.go @@ -740,7 +740,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) 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 {