Skip to content

Commit c74399e

Browse files
lyledean1gopherbot
authored andcommitted
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>
1 parent 4ed9943 commit c74399e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/dial.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ func (lc *ListenConfig) Listen(ctx context.Context, network, address string) (Li
837837
// parameters.
838838
//
839839
// The ctx argument is used while resolving the address on which to listen;
840-
// it does not affect the returned Listener.
840+
// it does not affect the returned PacketConn.
841841
func (lc *ListenConfig) ListenPacket(ctx context.Context, network, address string) (PacketConn, error) {
842842
addrs, err := DefaultResolver.resolveAddrList(ctx, "listen", network, address, nil)
843843
if err != nil {

0 commit comments

Comments
 (0)