Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Elazar Gershuni <[email protected]>
  • Loading branch information
Elazar Gershuni committed Mar 12, 2024
1 parent c8c69f1 commit 409b0f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ipblock/ipblock.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ func intervalToCidrList(ipStart, ipEnd int64) []string {
}

// IPBlockFromIPRangeStr returns IPBlock object from input IP range string (example: "169.255.0.0-172.15.255.255")
func IPBlockFromIPRangeStr(ipRagneStr string) (*IPBlock, error) {
ipAddresses := strings.Split(ipRagneStr, dash)
func IPBlockFromIPRangeStr(ipRangeStr string) (*IPBlock, error) {
ipAddresses := strings.Split(ipRangeStr, dash)
if len(ipAddresses) != 2 {
return nil, errors.New("unexpected ipRange str")
}
Expand Down

0 comments on commit 409b0f2

Please sign in to comment.