Skip to content

Commit 2a8b9a2

Browse files
author
Han Kang
committed
fix lint issue
1 parent 46762cf commit 2a8b9a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

set/set.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ func (s Set[T]) Clone() Set[T] {
210210
// s2 = {a1, a2, a4, a5}
211211
// s1.SymmetricDifference(s2) = {a3, a4, a5}
212212
// s2.SymmetricDifference(s1) = {a3, a4, a5}
213-
func (s1 Set[T]) SymmetricDifference(s2 Set[T]) Set[T] {
214-
return s1.Difference(s2).Union(s2.Difference(s1))
213+
func (s Set[T]) SymmetricDifference(s2 Set[T]) Set[T] {
214+
return s.Difference(s2).Union(s2.Difference(s))
215215
}
216216

217217
// Clear empties the set.

0 commit comments

Comments
 (0)