Skip to content

Commit 4754579

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

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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)