Skip to content

Commit 0750cb0

Browse files
authored
p2p/netutil: fix comments (#29942)
1 parent cbbfa3e commit 0750cb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

p2p/netutil/net.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,12 +288,12 @@ func (s *DistinctNetSet) RemoveAddr(ip netip.Addr) {
288288
}
289289
}
290290

291-
// Contains whether the given IP is contained in the set.
291+
// Contains reports whether the given IP is contained in the set.
292292
func (s DistinctNetSet) Contains(ip net.IP) bool {
293293
return s.ContainsAddr(IPToAddr(ip))
294294
}
295295

296-
// ContainsAddr whether the given IP is contained in the set.
296+
// ContainsAddr reports whether the given IP is contained in the set.
297297
func (s DistinctNetSet) ContainsAddr(ip netip.Addr) bool {
298298
key := s.key(ip)
299299
_, ok := s.members[key]

0 commit comments

Comments
 (0)