diff --git a/src/io/fs/fs.go b/src/io/fs/fs.go index 5c0d9a6664..4ce4d1a528 100644 --- a/src/io/fs/fs.go +++ b/src/io/fs/fs.go @@ -120,6 +120,7 @@ type ReadDirFile interface { // In this case, if ReadDir returns an empty slice, it will return // a non-nil error explaining why. // At the end of a directory, the error is io.EOF. + // (ReadDir must return io.EOF itself, not an error wrapping io.EOF.) // // If n <= 0, ReadDir returns all the DirEntry values from the directory // in a single slice. In this case, if ReadDir succeeds (reads all the way