mirror of
https://github.com/golang/go.git
synced 2024-09-29 22:37:06 +00:00
net: fix comment on FileListener
R=rsc CC=golang-dev https://golang.org/cl/6242067
This commit is contained in:
parent
992a11b88b
commit
8c8ab0552c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user