We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbbfa3e commit 0750cb0Copy full SHA for 0750cb0
p2p/netutil/net.go
@@ -288,12 +288,12 @@ func (s *DistinctNetSet) RemoveAddr(ip netip.Addr) {
288
}
289
290
291
-// Contains whether the given IP is contained in the set.
+// Contains reports whether the given IP is contained in the set.
292
func (s DistinctNetSet) Contains(ip net.IP) bool {
293
return s.ContainsAddr(IPToAddr(ip))
294
295
296
-// ContainsAddr whether the given IP is contained in the set.
+// ContainsAddr reports whether the given IP is contained in the set.
297
func (s DistinctNetSet) ContainsAddr(ip netip.Addr) bool {
298
key := s.key(ip)
299
_, ok := s.members[key]
0 commit comments