Commit 2469a817 authored by Andrew Gerrand's avatar Andrew Gerrand

net: update DialIP comments to mention protocols

Fixes #2637.

R=golang-dev, mikioh.mikioh, iant
CC=golang-dev
https://golang.org/cl/5508043
parent b682da32
...@@ -84,8 +84,8 @@ func splitNetProto(netProto string) (net string, proto int, err error) { ...@@ -84,8 +84,8 @@ func splitNetProto(netProto string) (net string, proto int, err error) {
return return
} }
// DialIP connects to the remote address raddr on the network net, // DialIP connects to the remote address raddr on the network protocol netProto,
// which must be "ip", "ip4", or "ip6". // 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) { func DialIP(netProto string, laddr, raddr *IPAddr) (c *IPConn, err error) {
return nil, os.EPLAN9 return nil, os.EPLAN9
} }
......
...@@ -224,8 +224,8 @@ func splitNetProto(netProto string) (net string, proto int, err error) { ...@@ -224,8 +224,8 @@ func splitNetProto(netProto string) (net string, proto int, err error) {
return net, proto, nil return net, proto, nil
} }
// DialIP connects to the remote address raddr on the network net, // DialIP connects to the remote address raddr on the network protocol netProto,
// which must be "ip", "ip4", or "ip6". // 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) { func DialIP(netProto string, laddr, raddr *IPAddr) (c *IPConn, err error) {
net, proto, err := splitNetProto(netProto) net, proto, err := splitNetProto(netProto)
if err != nil { if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment