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>
This commit is contained in:
Oleksandr Redko 2024-12-12 20:08:35 +02:00 committed by Gopher Robot
parent 14e5093ee5
commit 6f7a4540b1

View file

@ -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)