diff options
author | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2012-04-24 01:27:19 +0200 |
---|---|---|
committer | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2012-04-24 01:27:19 +0200 |
commit | bff1a8a3b127dec4b8d91419bf61dc7cb97662da (patch) | |
tree | 66f89a360164315da998441d59059541513b4249 | |
parent | cb6f9ce4c77860fa3cd58d9614ea49cc58dba086 (diff) | |
download | go-bff1a8a3b127dec4b8d91419bf61dc7cb97662da.tar.gz go-bff1a8a3b127dec4b8d91419bf61dc7cb97662da.zip |
[release-branch.go1] net: fix typo in Listener.File() documentation
««« backport 0739e30d5df7
net: fix typo in Listener.File() documentation
R=golang-dev, dave, rsc
CC=golang-dev, remy
https://golang.org/cl/6097044
»»»
-rw-r--r-- | src/pkg/net/tcpsock_posix.go | 2 | ||||
-rw-r--r-- | src/pkg/net/unixsock_posix.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/net/tcpsock_posix.go b/src/pkg/net/tcpsock_posix.go index f886a6b5c5..e6b1937fb2 100644 --- a/src/pkg/net/tcpsock_posix.go +++ b/src/pkg/net/tcpsock_posix.go @@ -357,5 +357,5 @@ func (l *TCPListener) SetDeadline(t time.Time) error { // File returns a copy of the underlying os.File, set to blocking mode. // It is the caller's responsibility to close f when finished. -// Closing c does not affect f, and closing f does not affect c. +// Closing l does not affect f, and closing f does not affect l. func (l *TCPListener) File() (f *os.File, err error) { return l.fd.dup() } diff --git a/src/pkg/net/unixsock_posix.go b/src/pkg/net/unixsock_posix.go index ea411a65f0..57d784c71c 100644 --- a/src/pkg/net/unixsock_posix.go +++ b/src/pkg/net/unixsock_posix.go @@ -404,7 +404,7 @@ func (l *UnixListener) SetDeadline(t time.Time) (err error) { // File returns a copy of the underlying os.File, set to blocking mode. // It is the caller's responsibility to close f when finished. -// Closing c does not affect f, and closing f does not affect c. +// Closing l does not affect f, and closing f does not affect l. func (l *UnixListener) File() (f *os.File, err error) { return l.fd.dup() } // ListenUnixgram listens for incoming Unix datagram packets addressed to the |