mirror of
https://github.com/golang/go
synced 2024-11-15 09:30:33 -07:00
[release-branch.go1] net: fix comment on FileListener
««« backport 3dfcac5f8254 net: fix comment on FileListener R=rsc CC=golang-dev https://golang.org/cl/6242067 »»»
This commit is contained in:
parent
4fcdfe1eb6
commit
35a1aa0420
@ -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