Skip to content

Commit

Permalink
net: fix example function name for IP.To4
Browse files Browse the repository at this point in the history
Change-Id: Ia9a2c3a9f53792173cd1fb9f8e1a078fe3444945
Reviewed-on: https://go-review.googlesource.com/c/go/+/635136
Auto-Submit: Ian Lance Taylor <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Carlos Amedee <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
  • Loading branch information
alexandear authored and gopherbot committed Dec 12, 2024
1 parent 14e5093 commit 6f7a454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6f7a454

Please sign in to comment.