]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1] net: fix comment on FileListener
authorMikio Hara <mikioh.mikioh@gmail.com>
Wed, 13 Jun 2012 20:24:26 +0000 (16:24 -0400)
committerMikio Hara <mikioh.mikioh@gmail.com>
Wed, 13 Jun 2012 20:24:26 +0000 (16:24 -0400)
««« backport 3dfcac5f8254
net: fix comment on FileListener

R=rsc
CC=golang-dev
https://golang.org/cl/6242067

»»»

src/pkg/net/file.go

index c95d16d64e796325db1cad4fa62daf623f95e6b5..fc6c6fad8e1572417a28879ca6f2239f6ef73888 100644 (file)
@@ -89,8 +89,8 @@ 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.
+// when finished.  Closing l does not affect f, and closing f does not
+// affect l.
 func FileListener(f *os.File) (l Listener, err error) {
        fd, err := newFileFD(f)
        if err != nil {