Skip to content

Commit bb6d16c

Browse files
committed
update comment
1 parent 2af8741 commit bb6d16c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

httprate.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ func composedKeyFunc(keyFuncs ...KeyFunc) KeyFunc {
137137
}
138138

139139
// canonicalizeIP returns a form of ip suitable for comparison to other IPs.
140-
// For IPv4 addresses, this is simply the whole string.
141-
// For IPv6 addresses, this is the /64 prefix.
140+
// For IPv4 and IPv6 addresses, this is simply the whole string.
142141
func canonicalizeIP(ip string) string {
143142
isIPv6 := false
144143
// This is how net.ParseIP decides if an address is IPv6

0 commit comments

Comments
 (0)