File tree 4 files changed +5
-7
lines changed
4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 3
3
reviewers:
4
4
- logicalhan
5
5
- thockin
6
- - lavalamp
7
6
approvers:
8
7
- logicalhan
9
8
- thockin
10
- - lavalamp
Original file line number Diff line number Diff line change 1
1
/*
2
- Copyright 2022 The Kubernetes Authors.
2
+ Copyright 2023 The Kubernetes Authors.
3
3
4
4
Licensed under the Apache License, Version 2.0 (the "License");
5
5
you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1
1
/*
2
- Copyright 2022 The Kubernetes Authors.
2
+ Copyright 2023 The Kubernetes Authors.
3
3
4
4
Licensed under the Apache License, Version 2.0 (the "License");
5
5
you may not use this file except in compliance with the License.
@@ -210,8 +210,8 @@ func (s Set[T]) Clone() Set[T] {
210
210
// s2 = {a1, a2, a4, a5}
211
211
// s1.SymmetricDifference(s2) = {a3, a4, a5}
212
212
// 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 ))
215
215
}
216
216
217
217
// Clear empties the set.
Original file line number Diff line number Diff line change 1
1
/*
2
- Copyright 2014 The Kubernetes Authors.
2
+ Copyright 2023 The Kubernetes Authors.
3
3
4
4
Licensed under the Apache License, Version 2.0 (the "License");
5
5
you may not use this file except in compliance with the License.
You can’t perform that action at this time.
0 commit comments