]> Cypherpunks repositories - gostls13.git/commitdiff
net: update DialIP comments to mention protocols
authorAndrew Gerrand <adg@golang.org>
Thu, 5 Jan 2012 04:18:08 +0000 (15:18 +1100)
committerAndrew Gerrand <adg@golang.org>
Thu, 5 Jan 2012 04:18:08 +0000 (15:18 +1100)
Fixes #2637.

R=golang-dev, mikioh.mikioh, iant
CC=golang-dev
https://golang.org/cl/5508043

src/pkg/net/iprawsock_plan9.go
src/pkg/net/iprawsock_posix.go

index 7e4bc56faca8e8c7733c83b8cade44443bf9a423..3fd9dce05e47d2741a2c9880bae2dea56e9b411f 100644 (file)
@@ -84,8 +84,8 @@ func splitNetProto(netProto string) (net string, proto int, err error) {
        return
 }
 
-// DialIP connects to the remote address raddr on the network net,
-// which must be "ip", "ip4", or "ip6".
+// DialIP connects to the remote address raddr on the network protocol netProto,
+// which must be "ip", "ip4", or "ip6" followed by a colon and a protocol number or name.
 func DialIP(netProto string, laddr, raddr *IPAddr) (c *IPConn, err error) {
        return nil, os.EPLAN9
 }
index 7bb4c7dc0d3d4d4a8ed86d35afa2f7cb14bb325b..584069418cecf78e10e590be0701ad63fa88d074 100644 (file)
@@ -224,8 +224,8 @@ func splitNetProto(netProto string) (net string, proto int, err error) {
        return net, proto, nil
 }
 
-// DialIP connects to the remote address raddr on the network net,
-// which must be "ip", "ip4", or "ip6".
+// DialIP connects to the remote address raddr on the network protocol netProto,
+// which must be "ip", "ip4", or "ip6" followed by a colon and a protocol number or name.
 func DialIP(netProto string, laddr, raddr *IPAddr) (c *IPConn, err error) {
        net, proto, err := splitNetProto(netProto)
        if err != nil {