mirror of
https://github.com/golang/go.git
synced 2025-10-19 11:03:18 +00:00
net: correct comment for ListenConfig.ListenPacket
Fixes #74634 Change-Id: I21196c4aef1b717bfda0b54e61b35e83cfa9dc1b Reviewed-on: https://go-review.googlesource.com/c/go/+/689075 Reviewed-by: Sean Liao <sean@liao.dev> Auto-Submit: Sean Liao <sean@liao.dev> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Mark Freeman <mark@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
parent
4ed9943b26
commit
c74399e7f5
1 changed files with 1 additions and 1 deletions
|
@ -837,7 +837,7 @@ func (lc *ListenConfig) Listen(ctx context.Context, network, address string) (Li
|
|||
// parameters.
|
||||
//
|
||||
// The ctx argument is used while resolving the address on which to listen;
|
||||
// it does not affect the returned Listener.
|
||||
// it does not affect the returned PacketConn.
|
||||
func (lc *ListenConfig) ListenPacket(ctx context.Context, network, address string) (PacketConn, error) {
|
||||
addrs, err := DefaultResolver.resolveAddrList(ctx, "listen", network, address, nil)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue