aboutsummaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorOleksandr Redko <oleksandr.red+github@gmail.com>2024-12-12 20:08:35 +0200
committerGopher Robot <gobot@golang.org>2024-12-12 13:01:47 -0800
commit6f7a4540b13d6d3be997276178aed96fb0e8a9c2 (patch)
tree33c7b4fa4ccf9a01a8567bb12bf70146aefbe4d4 /src/net
parent14e5093ee56c7e3a807c8924fd2d425cd2b0f376 (diff)
downloadgo-6f7a4540b13d6d3be997276178aed96fb0e8a9c2.tar.xz
net: fix example function name for IP.To4
Change-Id: Ia9a2c3a9f53792173cd1fb9f8e1a078fe3444945 Reviewed-on: https://go-review.googlesource.com/c/go/+/635136 Auto-Submit: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Carlos Amedee <carlos@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/net')
-rw-r--r--src/net/example_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/example_test.go b/src/net/example_test.go
index 2c045d73a2..12c8397094 100644
--- a/src/net/example_test.go
+++ b/src/net/example_test.go
@@ -334,7 +334,7 @@ func ExampleIP_To16() {
// 10.255.0.0
}
-func ExampleIP_to4() {
+func ExampleIP_To4() {
ipv6 := net.IP{0xfc, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ipv4 := net.IPv4(10, 255, 0, 0)