fix: does need to compare to true
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user