mirror of
https://github.com/golang/go
synced 2024-11-12 04:30:22 -07:00
undo CL 6248054 / 0f418a63cdf9
breaks public API document style ««« original CL description net: fix comment on FileListener R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6248054 »»» R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6242066
This commit is contained in:
parent
28e9e15802
commit
14ad411407
@ -88,10 +88,10 @@ 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 ln
|
||||
// when finished. Closing ln does not affect f, and closing f does not
|
||||
// affect ln.
|
||||
func FileListener(f *os.File) (ln Listener, err error) {
|
||||
// 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.
|
||||
func FileListener(f *os.File) (l Listener, err error) {
|
||||
fd, err := newFileFD(f)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user