]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix comment on FileListener
authorMikio Hara <mikioh.mikioh@gmail.com>
Mon, 28 May 2012 21:13:56 +0000 (06:13 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Mon, 28 May 2012 21:13:56 +0000 (06:13 +0900)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6248054

src/pkg/net/file.go

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