Skip to content

Commit

Permalink
Merge pull request #145 from meyermarcel/different-receivers
Browse files Browse the repository at this point in the history
Fix inconsistent receiver name
  • Loading branch information
pointlander authored Nov 27, 2024
2 parents 0490c17 + 1f05e8b commit 36cabf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions set/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ func (s *Set) Union(a *Set) *Set {
}

// Intersects returns true if two sets intersect
func (a *Set) Intersects(b *Set) bool {
x := a.Head.Forward
func (s *Set) Intersects(b *Set) bool {
x := s.Head.Forward
if x == nil {
return false
}
Expand All @@ -255,7 +255,7 @@ func (a *Set) Intersects(b *Set) bool {
return false
}
for x.Forward != nil {
y := a.Head.Forward
y := s.Head.Forward
if y == nil {
return false
}
Expand Down

0 comments on commit 36cabf2

Please sign in to comment.