Skip to content

Commit 67422e2

Browse files
authored
p2p/nat: fix typos in comments (#29536)
1 parent 84b12df commit 67422e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

p2p/nat/natpmp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
natpmp "github.com/jackpal/go-nat-pmp"
2727
)
2828

29-
// natPMPClient adapts the NAT-PMP protocol implementation so it conforms to
29+
// pmp adapts the NAT-PMP protocol implementation so it conforms to
3030
// the common interface.
3131
type pmp struct {
3232
gw net.IP

p2p/nat/natupnp.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ func discoverUPnP() Interface {
205205
return nil
206206
}
207207

208-
// finds devices matching the given target and calls matcher for all
209-
// advertised services of each device. The first non-nil service found
208+
// discover finds devices matching the given target and calls matcher for
209+
// all advertised services of each device. The first non-nil service found
210210
// is sent into out. If no service matched, nil is sent.
211211
func discover(out chan<- *upnp, target string, matcher func(goupnp.ServiceClient) *upnp) {
212212
devs, err := goupnp.DiscoverDevices(target)

0 commit comments

Comments
 (0)