]> Cypherpunks repositories - gostls13.git/commitdiff
net: correct comment for ListenConfig.ListenPacket
authorLyle Dean <dean@lyle.dev>
Sun, 20 Jul 2025 23:20:11 +0000 (00:20 +0100)
committerGopher Robot <gobot@golang.org>
Tue, 22 Jul 2025 16:33:42 +0000 (09:33 -0700)
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>
src/net/dial.go

index db0404c3f808158ce118eedb4205c437ec2adc8e..6264984ceca182bc394a6851233c4806586975b7 100644 (file)
@@ -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 {