We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0e0704 commit 1aaddc3Copy full SHA for 1aaddc3
pkg/util/intsets/fast.go
@@ -46,9 +46,7 @@ func (s *Fast) fitsInSmall() bool {
46
return s.large == nil || s.large.Empty()
47
}
48
49
-// Add adds a value to the set. No-op if the value is already in the set. If the
50
-// large set is not nil and the value is within the range [0, 63], the value is
51
-// added to both the large and small sets.
+// Add adds a value to the set. No-op if the value is already in the set.
52
func (s *Fast) Add(i int) {
53
if i >= 0 && i < smallCutoff {
54
s.small.Set(i)
0 commit comments