]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix comment on Dial with unixgram
authorMikio Hara <mikioh.mikioh@gmail.com>
Tue, 28 Feb 2012 22:45:38 +0000 (07:45 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Tue, 28 Feb 2012 22:45:38 +0000 (07:45 +0900)
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

src/pkg/net/dial.go

index 61b8911fcf98c474fdbf1fb96058743223a4e7e1..10ca5faf7070aa345df2e63d8df793e183fe6233 100644 (file)
@@ -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