]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix comment on FileListener
authorMikio Hara <mikioh.mikioh@gmail.com>
Tue, 29 May 2012 16:52:50 +0000 (01:52 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Tue, 29 May 2012 16:52:50 +0000 (01:52 +0900)
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 {