From: Lyle Dean Date: Sun, 20 Jul 2025 23:20:11 +0000 (+0100) Subject: net: correct comment for ListenConfig.ListenPacket X-Git-Tag: go1.25rc3~5^2~2 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c74399e7f5e763e6c25978d090122a0a73a695ee;p=gostls13.git 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 Auto-Submit: Sean Liao LUCI-TryBot-Result: Go LUCI Reviewed-by: Mark Freeman Reviewed-by: Michael Knyszek --- 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 {