File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 33reviewers:
44 - logicalhan
55 - thockin
6- - lavalamp
76approvers:
87 - logicalhan
98 - thockin
10- - lavalamp
Original file line number Diff line number Diff line change 11/*
2- Copyright 2022 The Kubernetes Authors.
2+ Copyright 2023 The Kubernetes Authors.
33
44Licensed under the Apache License, Version 2.0 (the "License");
55you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 11/*
2- Copyright 2022 The Kubernetes Authors.
2+ Copyright 2023 The Kubernetes Authors.
33
44Licensed under the Apache License, Version 2.0 (the "License");
55you 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.
Original file line number Diff line number Diff line change 11/*
2- Copyright 2014 The Kubernetes Authors.
2+ Copyright 2023 The Kubernetes Authors.
33
44Licensed under the Apache License, Version 2.0 (the "License");
55you may not use this file except in compliance with the License.
You can’t perform that action at this time.
0 commit comments