From: Mikio Hara Date: Tue, 28 Feb 2012 22:45:38 +0000 (+0900) Subject: net: fix comment on Dial with unixgram X-Git-Tag: weekly.2012-03-04~102 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e266d6064c7e485673ea651d673b2ca22e0649f2;p=gostls13.git net: fix comment on Dial with unixgram We should use DialUnix or ListenPacket for unixgram networks because Dial doesn't take a local UnixAddr. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5706043 --- diff --git a/src/pkg/net/dial.go b/src/pkg/net/dial.go index 61b8911fcf..10ca5faf70 100644 --- a/src/pkg/net/dial.go +++ b/src/pkg/net/dial.go @@ -69,7 +69,7 @@ func resolveNetAddr(op, net, addr string) (afnet string, a Addr, err error) { // // Known networks are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), // "udp", "udp4" (IPv4-only), "udp6" (IPv6-only), "ip", "ip4" -// (IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and "unixpacket". +// (IPv4-only), "ip6" (IPv6-only), "unix" and "unixpacket". // // For TCP and UDP networks, addresses have the form host:port. // If host is a literal IPv6 address, it must be enclosed