diff options
| author | Lyle Dean <dean@lyle.dev> | 2025-07-21 00:20:11 +0100 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-07-22 09:33:42 -0700 |
| commit | c74399e7f5e763e6c25978d090122a0a73a695ee (patch) | |
| tree | 90fc559c94195b1ec256c97dfb21fb3b6383021f | |
| parent | 4ed9943b264170b11af375f9cc82807516578c77 (diff) | |
| download | go-c74399e7f5e763e6c25978d090122a0a73a695ee.tar.xz | |
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>
| -rw-r--r-- | src/net/dial.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/dial.go b/src/net/dial.go index db0404c3f8..6264984cec 100644 --- a/src/net/dial.go +++ b/src/net/dial.go @@ -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 { |
