Skip to content

Commit c3703b2

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

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

set/OWNERS

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
reviewers:
44
- logicalhan
55
- thockin
6-
- lavalamp
76
approvers:
87
- logicalhan
98
- thockin
10-
- lavalamp

set/ordered.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2022 The Kubernetes Authors.
2+
Copyright 2023 The Kubernetes Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

set/set.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2022 The Kubernetes Authors.
2+
Copyright 2023 The Kubernetes Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -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.

set/set_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2014 The Kubernetes Authors.
2+
Copyright 2023 The Kubernetes Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)