diff options
| author | Kamil Kisiel <kamil@kamilkisiel.net> | 2013-09-06 12:00:03 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2013-09-06 12:00:03 -0700 |
| commit | a3834a2e8a730a4e6a9be9f7ebba96ec3c942d32 (patch) | |
| tree | 952bf2d692af36b3e5d07a8ab5813de8d7f67eaa /src | |
| parent | 640a57c8811c5bd45f519fc65ff10443e9f5a8a2 (diff) | |
| download | go-a3834a2e8a730a4e6a9be9f7ebba96ec3c942d32.tar.xz | |
net: Fix inaccurate docs for AcceptTCP and AcceptUnix.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13592043
Diffstat (limited to 'src')
| -rw-r--r-- | src/pkg/net/tcpsock_plan9.go | 2 | ||||
| -rw-r--r-- | src/pkg/net/tcpsock_posix.go | 2 | ||||
| -rw-r--r-- | src/pkg/net/unixsock_plan9.go | 2 | ||||
| -rw-r--r-- | src/pkg/net/unixsock_posix.go | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/net/tcpsock_plan9.go b/src/pkg/net/tcpsock_plan9.go index d155d0736a..cf9c0f8904 100644 --- a/src/pkg/net/tcpsock_plan9.go +++ b/src/pkg/net/tcpsock_plan9.go @@ -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 diff --git a/src/pkg/net/tcpsock_posix.go b/src/pkg/net/tcpsock_posix.go index d9e25e26e6..00c692e423 100644 --- a/src/pkg/net/tcpsock_posix.go +++ b/src/pkg/net/tcpsock_posix.go @@ -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 diff --git a/src/pkg/net/unixsock_plan9.go b/src/pkg/net/unixsock_plan9.go index 8a1281fb1a..c60c1d83bb 100644 --- a/src/pkg/net/unixsock_plan9.go +++ b/src/pkg/net/unixsock_plan9.go @@ -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 } diff --git a/src/pkg/net/unixsock_posix.go b/src/pkg/net/unixsock_posix.go index fc061804c7..08ea24a430 100644 --- a/src/pkg/net/unixsock_posix.go +++ b/src/pkg/net/unixsock_posix.go @@ -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 |
