]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix Dial comment about IPv6 addresses
authorBrad Fitzpatrick <bradfitz@golang.org>
Sat, 2 Aug 2014 04:35:03 +0000 (21:35 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 2 Aug 2014 04:35:03 +0000 (21:35 -0700)
LGTM=r
R=golang-codereviews, r
CC=adg, golang-codereviews
https://golang.org/cl/118550043

src/pkg/net/dial.go

index ac5c59fe793f0313b7fa5e9793b7f41a15259c7b..e6f0436cdd30f5a7dbe116592c9ba7b1fcae99d8 100644 (file)
@@ -118,9 +118,8 @@ func resolveAddr(op, net, addr string, deadline time.Time) (netaddr, error) {
 // "unixpacket".
 //
 // 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
-// in square brackets as in "[::1]:80", "[ipv6-host]:http" or
-// "[ipv6-host%zone]:80".
+// If host is a literal IPv6 address it must be enclosed
+// in square brackets as in "[::1]:80" or "[ipv6-host%zone]:80".
 // The functions JoinHostPort and SplitHostPort manipulate addresses
 // in this form.
 //