Skip to content

Commit

Permalink
fixed doc
Browse files Browse the repository at this point in the history
  • Loading branch information
YairSlobodin1 committed Oct 22, 2024
1 parent 6395669 commit 5de642a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/netset/ipblock.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func cidrToInterval(cidr string) (interval.Interval, error) {
return interval.New(int64(startNum), int64(endNum)), nil
}

// if this ipb contains exactly one cidr AsCidr returns its string
// AsCidr returns the CIDR string of this IPBlock object, if it contains exactly one CIDR,
// otherwise it returns an error
func (b *IPBlock) AsCidr() (string, error) {
cidrList := b.ToCidrList()
Expand Down

0 comments on commit 5de642a

Please sign in to comment.