net: fix comment on FileListener

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6248054
This commit is contained in:
Mikio Hara 2012-05-29 06:13:56 +09:00
parent ac486ab15c
commit 7db8c779fe

View File

@ -88,10 +88,10 @@ func FileConn(f *os.File) (c Conn, err error) {
} }
// FileListener returns a copy of the network listener corresponding // FileListener returns a copy of the network listener corresponding
// to the open file f. It is the caller's responsibility to close l // to the open file f. It is the caller's responsibility to close ln
// when finished. Closing c does not affect l, and closing l does not // when finished. Closing ln does not affect f, and closing f does not
// affect c. // affect ln.
func FileListener(f *os.File) (l Listener, err error) { func FileListener(f *os.File) (ln Listener, err error) {
fd, err := newFileFD(f) fd, err := newFileFD(f)
if err != nil { if err != nil {
return nil, err return nil, err