p2p/enode: fix method doc (#23115)

This is an obvious spelling error

Co-authored-by: liuyaxiong <liuyaxiong@inspur.com>
pull/23116/head
ForLina 3 years ago committed by GitHub
parent 2d4eff21ca
commit dde6f1e92d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      p2p/enode/node.go

@ -121,7 +121,7 @@ func (n *Node) UDP() int {
return int(port)
}
// UDP returns the TCP port of the node.
// TCP returns the TCP port of the node.
func (n *Node) TCP() int {
var port enr.TCP
n.Load(&port)

Loading…
Cancel
Save