]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix example function name for IP.To4
authorOleksandr Redko <oleksandr.red+github@gmail.com>
Thu, 12 Dec 2024 18:08:35 +0000 (20:08 +0200)
committerGopher Robot <gobot@golang.org>
Thu, 12 Dec 2024 21:01:47 +0000 (13:01 -0800)
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>
src/net/example_test.go

index 2c045d73a24bcb01ee8ea08f10afcac4ae305c03..12c83970940ab0647faa03d67592a61c9afbb275 100644 (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)