Message:
Hello golan...@googlegroups.com (cc: golan...@googlegroups.com,
re...@archlinux.org),
I'd like you to review this change to
https://go.googlecode.com/hg/
Description:
net: fix typo in Listener.File() documentation
Please review this at http://codereview.appspot.com/6097044/
Affected files:
M src/pkg/net/tcpsock_posix.go
M src/pkg/net/unixsock_posix.go
Index: src/pkg/net/tcpsock_posix.go
===================================================================
--- a/src/pkg/net/tcpsock_posix.go
+++ b/src/pkg/net/tcpsock_posix.go
@@ -357,5 +357,5 @@
// 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: src/pkg/net/unixsock_posix.go
===================================================================
--- a/src/pkg/net/unixsock_posix.go
+++ b/src/pkg/net/unixsock_posix.go
@@ -404,7 +404,7 @@
// 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
net: fix typo in Listener.File() documentation
R=golang-dev, dave, rsc
CC=golang-dev, remy
http://codereview.appspot.com/6097044