mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
14e5093ee5
commit
6f7a4540b1
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue