mirror of
https://github.com/golang/go
synced 2024-11-19 08:54:47 -07:00
net: fix Dial comment about IPv6 addresses
LGTM=r R=golang-codereviews, r CC=adg, golang-codereviews https://golang.org/cl/118550043
This commit is contained in:
parent
fe513d8b3e
commit
aa69a3c386
@ -118,9 +118,8 @@ func resolveAddr(op, net, addr string, deadline time.Time) (netaddr, error) {
|
|||||||
// "unixpacket".
|
// "unixpacket".
|
||||||
//
|
//
|
||||||
// For TCP and UDP networks, addresses have the form host:port.
|
// For TCP and UDP networks, addresses have the form host:port.
|
||||||
// If host is a literal IPv6 address or host name, it must be enclosed
|
// If host is a literal IPv6 address it must be enclosed
|
||||||
// in square brackets as in "[::1]:80", "[ipv6-host]:http" or
|
// in square brackets as in "[::1]:80" or "[ipv6-host%zone]:80".
|
||||||
// "[ipv6-host%zone]:80".
|
|
||||||
// The functions JoinHostPort and SplitHostPort manipulate addresses
|
// The functions JoinHostPort and SplitHostPort manipulate addresses
|
||||||
// in this form.
|
// in this form.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user