Skip to content

Commit 4024986

Browse files
committed
fix comment typos
1 parent a911fa2 commit 4024986

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

conversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (a *addr) is4() bool {
5757
//
5858
// Precondition: a is a valid IP address.
5959
func unwrap(a netip.Addr) (b addr) {
60-
ip := a.AsSlice() // nil if is a isn't valid!
60+
ip := a.AsSlice() // nil if a isn't valid!
6161

6262
if len(ip) == 4 {
6363
b.v4 = true

extnetip.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func allRec(a, b addr, yield func(netip.Prefix) bool) bool {
149149
// Range doesn't match a single CIDR - split it in half
150150
mask := mask6(bits + 1) // Mask for one bit longer prefix
151151
leftUpper := fromUint128(a.ip.or(mask.not()), a.is4()) // Left half upper bound
152-
rightLower := fromUint128(b.ip.and(mask), a.is4()) // // Right half lower bound
152+
rightLower := fromUint128(b.ip.and(mask), a.is4()) // Right half lower bound
153153

154154
// Recursively process both halves
155155
return allRec(a, leftUpper, yield) && allRec(rightLower, b, yield)

0 commit comments

Comments
 (0)