]> Cypherpunks repositories - gostls13.git/commitdiff
net: Fix inaccurate docs for AcceptTCP and AcceptUnix.
authorKamil Kisiel <kamil@kamilkisiel.net>
Fri, 6 Sep 2013 19:00:03 +0000 (12:00 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 6 Sep 2013 19:00:03 +0000 (12:00 -0700)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13592043

src/pkg/net/tcpsock_plan9.go
src/pkg/net/tcpsock_posix.go
src/pkg/net/unixsock_plan9.go
src/pkg/net/unixsock_posix.go

index d155d0736a15add98bc6149e1720cefd9bccfd38..cf9c0f8904764bafb1e37d9cdb296713b57d40d6 100644 (file)
@@ -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
index d9e25e26e62d7be3a6c9257f60c24281d905aff1..00c692e423377d12d7ca4bce9d29018f0b1498e3 100644 (file)
@@ -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
index 8a1281fb1a417d80f16d4ac92376d2f9fa3d9e84..c60c1d83bb31d7e1f50c99d142f63210f3aca6b3 100644 (file)
@@ -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
 }
index fc061804c701a79cc42970f961ae6b1bf15fb47c..08ea24a4305a71fd1c39bedd1dc74a54a74cb2ec 100644 (file)
@@ -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