Skip to content

p2p/nat: fix typos in comments #1984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion p2p/nat/natpmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
natpmp "github.com/jackpal/go-nat-pmp"
)

// natPMPClient adapts the NAT-PMP protocol implementation so it conforms to
// pmp adapts the NAT-PMP protocol implementation so it conforms to
// the common interface.
type pmp struct {
gw net.IP
Expand Down
4 changes: 2 additions & 2 deletions p2p/nat/natupnp.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ func discoverUPnP() Interface {
return nil
}

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