Commit a3834a2e authored by Kamil Kisiel's avatar Kamil Kisiel Committed by Brad Fitzpatrick

net: Fix inaccurate docs for AcceptTCP and AcceptUnix.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13592043
parent 640a57c8
......@@ -111,7 +111,7 @@ type TCPListener struct {
}
// AcceptTCP accepts the next incoming call and returns the new
// connection and the remote address.
// connection.
func (l *TCPListener) AcceptTCP() (*TCPConn, error) {
if l == nil || l.fd == nil || l.fd.ctl == nil {
return nil, syscall.EINVAL
......
......@@ -225,7 +225,7 @@ type TCPListener struct {
}
// AcceptTCP accepts the next incoming call and returns the new
// connection and the remote address.
// connection.
func (l *TCPListener) AcceptTCP() (*TCPConn, error) {
if l == nil || l.fd == nil {
return nil, syscall.EINVAL
......
......@@ -97,7 +97,7 @@ func ListenUnix(net string, laddr *UnixAddr) (*UnixListener, error) {
}
// AcceptUnix accepts the next incoming call and returns the new
// connection and the remote address.
// connection.
func (l *UnixListener) AcceptUnix() (*UnixConn, error) {
return nil, syscall.EPLAN9
}
......
......@@ -275,7 +275,7 @@ func ListenUnix(net string, laddr *UnixAddr) (*UnixListener, error) {
}
// AcceptUnix accepts the next incoming call and returns the new
// connection and the remote address.
// connection.
func (l *UnixListener) AcceptUnix() (*UnixConn, error) {
if l == nil || l.fd == nil {
return nil, syscall.EINVAL
......
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