aboutsummaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2021-04-11 14:33:16 +0200
committerTobias Klauser <tobias.klauser@gmail.com>2021-04-12 05:11:59 +0000
commite12abe4bd63883b16a76f650222dd4617504e43f (patch)
tree642e5424bcd6a4b88adf11ca9e1b1f7685069c09 /src/net
parent7beb988a3b935a9db56b9e0544506491c4d5d06a (diff)
downloadgo-e12abe4bd63883b16a76f650222dd4617504e43f.tar.gz
go-e12abe4bd63883b16a76f650222dd4617504e43f.zip
net: fix (*ipStackCapabilities).probe godoc
Change-Id: I2e5db6e7e9a7b3c84449d16b6bc32afe1d0ffee9 Reviewed-on: https://go-review.googlesource.com/c/go/+/308991 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ipsock_plan9.go2
-rw-r--r--src/net/ipsock_posix.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/net/ipsock_plan9.go b/src/net/ipsock_plan9.go
index 8e984d5e5f..43287431c8 100644
--- a/src/net/ipsock_plan9.go
+++ b/src/net/ipsock_plan9.go
@@ -13,7 +13,7 @@ import (
"syscall"
)
-// Probe probes IPv4, IPv6 and IPv4-mapped IPv6 communication
+// probe probes IPv4, IPv6 and IPv4-mapped IPv6 communication
// capabilities.
//
// Plan 9 uses IPv6 natively, see ip(3).
diff --git a/src/net/ipsock_posix.go b/src/net/ipsock_posix.go
index 8d8a896501..c51c227401 100644
--- a/src/net/ipsock_posix.go
+++ b/src/net/ipsock_posix.go
@@ -14,13 +14,13 @@ import (
"syscall"
)
-// Probe probes IPv4, IPv6 and IPv4-mapped IPv6 communication
+// probe probes IPv4, IPv6 and IPv4-mapped IPv6 communication
// capabilities which are controlled by the IPV6_V6ONLY socket option
// and kernel configuration.
//
// Should we try to use the IPv4 socket interface if we're only
// dealing with IPv4 sockets? As long as the host system understands
-// IPv4-mapped IPv6, it's okay to pass IPv4-mapeed IPv6 addresses to
+// IPv4-mapped IPv6, it's okay to pass IPv4-mapped IPv6 addresses to
// the IPv6 interface. That simplifies our code and is most
// general. Unfortunately, we need to run on kernels built without
// IPv6 support too. So probe the kernel to figure it out.