1
0
mirror of https://github.com/golang/go synced 2024-10-03 09:21:21 -06:00

net: fix typo in Listener.File() documentation

R=golang-dev, dave, rsc
CC=golang-dev, remy
https://golang.org/cl/6097044
This commit is contained in:
Rémy Oudompheng 2012-04-24 01:27:19 +02:00
parent f14a5347e6
commit d1ab10b4ff
2 changed files with 2 additions and 2 deletions

View File

@ -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. // File returns a copy of the underlying os.File, set to blocking mode.
// It is the caller's responsibility to close f when finished. // 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() } func (l *TCPListener) File() (f *os.File, err error) { return l.fd.dup() }

View File

@ -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. // File returns a copy of the underlying os.File, set to blocking mode.
// It is the caller's responsibility to close f when finished. // 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() } func (l *UnixListener) File() (f *os.File, err error) { return l.fd.dup() }
// ListenUnixgram listens for incoming Unix datagram packets addressed to the // ListenUnixgram listens for incoming Unix datagram packets addressed to the