1
0
mirror of https://github.com/golang/go synced 2024-11-24 20:10:02 -07:00

net: Fix inaccurate docs for AcceptTCP and AcceptUnix.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13592043
This commit is contained in:
Kamil Kisiel 2013-09-06 12:00:03 -07:00 committed by Brad Fitzpatrick
parent 640a57c881
commit a3834a2e8a
4 changed files with 4 additions and 4 deletions

View File

@ -111,7 +111,7 @@ type TCPListener struct {
} }
// AcceptTCP accepts the next incoming call and returns the new // AcceptTCP accepts the next incoming call and returns the new
// connection and the remote address. // connection.
func (l *TCPListener) AcceptTCP() (*TCPConn, error) { func (l *TCPListener) AcceptTCP() (*TCPConn, error) {
if l == nil || l.fd == nil || l.fd.ctl == nil { if l == nil || l.fd == nil || l.fd.ctl == nil {
return nil, syscall.EINVAL return nil, syscall.EINVAL

View File

@ -225,7 +225,7 @@ type TCPListener struct {
} }
// AcceptTCP accepts the next incoming call and returns the new // AcceptTCP accepts the next incoming call and returns the new
// connection and the remote address. // connection.
func (l *TCPListener) AcceptTCP() (*TCPConn, error) { func (l *TCPListener) AcceptTCP() (*TCPConn, error) {
if l == nil || l.fd == nil { if l == nil || l.fd == nil {
return nil, syscall.EINVAL return nil, syscall.EINVAL

View File

@ -97,7 +97,7 @@ func ListenUnix(net string, laddr *UnixAddr) (*UnixListener, error) {
} }
// AcceptUnix accepts the next incoming call and returns the new // AcceptUnix accepts the next incoming call and returns the new
// connection and the remote address. // connection.
func (l *UnixListener) AcceptUnix() (*UnixConn, error) { func (l *UnixListener) AcceptUnix() (*UnixConn, error) {
return nil, syscall.EPLAN9 return nil, syscall.EPLAN9
} }

View File

@ -275,7 +275,7 @@ func ListenUnix(net string, laddr *UnixAddr) (*UnixListener, error) {
} }
// AcceptUnix accepts the next incoming call and returns the new // AcceptUnix accepts the next incoming call and returns the new
// connection and the remote address. // connection.
func (l *UnixListener) AcceptUnix() (*UnixConn, error) { func (l *UnixListener) AcceptUnix() (*UnixConn, error) {
if l == nil || l.fd == nil { if l == nil || l.fd == nil {
return nil, syscall.EINVAL return nil, syscall.EINVAL