fix: does need to compare to true

This commit is contained in:
2025-12-26 00:07:10 -05:00
parent 5ff8892d13
commit d74894223e

View File

@@ -9,7 +9,7 @@ func (s *Set[T]) Add(items ...T) {
} }
func (s Set[T]) Has(item T) bool { func (s Set[T]) Has(item T) bool {
return s[item] == true return s[item]
} }
func (s *Set[T]) Remove(items ...T) { func (s *Set[T]) Remove(items ...T) {