aboutsummaryrefslogtreecommitdiff
path: root/src/net/dial.go
diff options
context:
space:
mode:
authorJabar Asadi <jasadi@d2iq.com>2023-05-02 17:49:52 +0000
committerGopher Robot <gobot@golang.org>2023-05-09 14:42:20 +0000
commit8af1067698ada0a835a265b49f7913d4d33f32fb (patch)
tree16c3623aaf74fb517432a580267bafadacaf8ff8 /src/net/dial.go
parentf3034bed728551eb3f5e1ce8d8f1e54829909a45 (diff)
downloadgo-8af1067698ada0a835a265b49f7913d4d33f32fb.tar.xz
net: correct Dialer.ControlContext documentation
Change-Id: I4ec5883fc8713e0f711bb6beff45f426dae8f9f4 GitHub-Last-Rev: 9ea0c1505c2f3974e5d224299db5f888a4cf7618 GitHub-Pull-Request: golang/go#59819 Reviewed-on: https://go-review.googlesource.com/c/go/+/488315 Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/net/dial.go')
-rw-r--r--src/net/dial.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/dial.go b/src/net/dial.go
index 58e3b392d9..fd1da1ebef 100644
--- a/src/net/dial.go
+++ b/src/net/dial.go
@@ -125,7 +125,7 @@ type Dialer struct {
// If Control is not nil, it is called after creating the network
// connection but before actually dialing.
//
- // Network and address parameters passed to Control method are not
+ // Network and address parameters passed to Control function are not
// necessarily the ones passed to Dial. For example, passing "tcp" to Dial
// will cause the Control function to be called with "tcp4" or "tcp6".
//
@@ -135,9 +135,9 @@ type Dialer struct {
// If ControlContext is not nil, it is called after creating the network
// connection but before actually dialing.
//
- // Network and address parameters passed to Control method are not
+ // Network and address parameters passed to ControlContext function are not
// necessarily the ones passed to Dial. For example, passing "tcp" to Dial
- // will cause the Control function to be called with "tcp4" or "tcp6".
+ // will cause the ControlContext function to be called with "tcp4" or "tcp6".
//
// If ControlContext is not nil, Control is ignored.
ControlContext func(ctx context.Context, network, address string, c syscall.RawConn) error