diff --git a/src/net/http/fs.go b/src/net/http/fs.go index 19b2894bf2..ae8481e226 100644 --- a/src/net/http/fs.go +++ b/src/net/http/fs.go @@ -815,6 +815,7 @@ func (f ioFile) Readdir(count int) ([]fs.FileInfo, error) { // FS converts fsys to a FileSystem implementation, // for use with FileServer and NewFileTransport. +// The files provided by fsys must implement io.Seeker. func FS(fsys fs.FS) FileSystem { return ioFS{fsys} }