diff options
Diffstat (limited to 'libgo/go/os/file_unix.go')
-rw-r--r-- | libgo/go/os/file_unix.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/os/file_unix.go b/libgo/go/os/file_unix.go index f196f1f..a7ccb33 100644 --- a/libgo/go/os/file_unix.go +++ b/libgo/go/os/file_unix.go @@ -39,7 +39,7 @@ func NewFile(fd int, name string) *File { // Auxiliary information if the File describes a directory type dirInfo struct { - buf []byte // buffer for directory I/O + buf []byte // buffer for directory I/O dir *syscall.DIR // from opendir } @@ -79,7 +79,7 @@ func (file *File) Close() error { } if file.dirinfo != nil { - if libc_closedir(file.dirinfo.dir) < 0 && err == nil { + if libc_closedir(file.dirinfo.dir) < 0 && err == nil { err = &PathError{"closedir", file.name, Errno(syscall.GetErrno())} } } @@ -142,7 +142,7 @@ func Lstat(name string) (fi *FileInfo, err error) { // // If n > 0, Readdir returns at most n FileInfo structures. 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 os.EOF. +// explaining why. At the end of a directory, the error is io.EOF. // // If n <= 0, Readdir returns all the FileInfo from the directory in // a single slice. In this case, if Readdir succeeds (reads all |