]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix typo in ControlContext parameter names
authorDamien Neil <dneil@google.com>
Fri, 18 Nov 2022 18:44:55 +0000 (10:44 -0800)
committerGopher Robot <gobot@golang.org>
Fri, 18 Nov 2022 19:13:54 +0000 (19:13 +0000)
Change-Id: I35fcfb2d8cafadca36cffeebe0858973895946d7
Reviewed-on: https://go-review.googlesource.com/c/go/+/451419
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Damien Neil <dneil@google.com>

src/net/dial.go

index e243f45ba3569105bb8a8b2d0fed090edacdd953..85ec55757518d92e83868df168c2c4977f89691a 100644 (file)
@@ -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 }