From f263d9cd93bd713b44b54a3c943b23be0e2c73b9 Mon Sep 17 00:00:00 2001 From: Damien Neil Date: Fri, 18 Nov 2022 10:44:55 -0800 Subject: [PATCH] net: fix typo in ControlContext parameter names Change-Id: I35fcfb2d8cafadca36cffeebe0858973895946d7 Reviewed-on: https://go-review.googlesource.com/c/go/+/451419 Reviewed-by: Ian Lance Taylor Auto-Submit: Damien Neil TryBot-Result: Gopher Robot Run-TryBot: Damien Neil --- src/net/dial.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/dial.go b/src/net/dial.go index e243f45ba3..85ec557575 100644 --- a/src/net/dial.go +++ b/src/net/dial.go @@ -107,7 +107,7 @@ type Dialer struct { // will cause the Control function to be called with "tcp4" or "tcp6". // // If ControlContext is not nil, Control is ignored. - ControlContext func(cxt context.Context, network, address string, c syscall.RawConn) error + ControlContext func(ctx context.Context, network, address string, c syscall.RawConn) error } func (d *Dialer) dualStack() bool { return d.FallbackDelay >= 0 } -- 2.50.0