From: Oleksandr Redko Date: Thu, 12 Dec 2024 18:08:35 +0000 (+0200) Subject: net: fix example function name for IP.To4 X-Git-Tag: go1.24rc2~6^2~102 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6f7a4540b13d6d3be997276178aed96fb0e8a9c2;p=gostls13.git 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: Carlos Amedee Reviewed-by: Ian Lance Taylor --- 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)