]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix typo in Listener.File() documentation
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 23 Apr 2012 23:27:19 +0000 (01:27 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 23 Apr 2012 23:27:19 +0000 (01:27 +0200)
R=golang-dev, dave, rsc
CC=golang-dev, remy
https://golang.org/cl/6097044

src/pkg/net/tcpsock_posix.go
src/pkg/net/unixsock_posix.go

index f886a6b5c5b1f473b68c9dc92d62fb01861cc7dc..e6b1937fb2c7f04629252bea65f76b29606c0ac3 100644 (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.
 // 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() }
index ea411a65f0aa8d7e6f62529a92705642a1994307..57d784c71cf197b10e3682c2adc657a165f38c96 100644 (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.
 // 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() }
 
 // ListenUnixgram listens for incoming Unix datagram packets addressed to the