From 0f4bba791625c508c93e79ac671127c4ac3c24a6 Mon Sep 17 00:00:00 2001 From: Elazar Gershuni Date: Mon, 11 Mar 2024 16:00:26 +0200 Subject: [PATCH] fix api comment Signed-off-by: Elazar Gershuni --- pkg/interval/intervalset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/interval/intervalset.go b/pkg/interval/intervalset.go index df69bcc..d67e148 100644 --- a/pkg/interval/intervalset.go +++ b/pkg/interval/intervalset.go @@ -139,7 +139,7 @@ func (c *CanonicalSet) Overlaps(other *CanonicalSet) bool { return false } -// Subtract updates current CanonicalSet with subtraction result of input CanonicalSet +// Subtract returns the subtraction result of input CanonicalSet func (c *CanonicalSet) Subtract(other *CanonicalSet) *CanonicalSet { res := slices.Clone(c.IntervalSet) for _, hole := range other.IntervalSet {