aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/os/doc.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/os/doc.go')
-rw-r--r--libgo/go/os/doc.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/os/doc.go b/libgo/go/os/doc.go
index 869a28a..0313eac 100644
--- a/libgo/go/os/doc.go
+++ b/libgo/go/os/doc.go
@@ -77,14 +77,14 @@ func (p *ProcessState) Success() bool {
}
// Sys returns system-dependent exit information about
-// the process. Convert it to the appropriate underlying
+// the process. Convert it to the appropriate underlying
// type, such as syscall.WaitStatus on Unix, to access its contents.
func (p *ProcessState) Sys() interface{} {
return p.sys()
}
// SysUsage returns system-dependent resource usage information about
-// the exited process. Convert it to the appropriate underlying
+// the exited process. Convert it to the appropriate underlying
// type, such as *syscall.Rusage on Unix, to access its contents.
// (On Unix, *syscall.Rusage matches struct rusage as defined in the
// getrusage(2) manual page.)
@@ -112,7 +112,7 @@ func Hostname() (name string, err error) {
// nil error. If it encounters an error before the end of the
// directory, Readdir returns the FileInfo read until that point
// and a non-nil error.
-func (f *File) Readdir(n int) (fi []FileInfo, err error) {
+func (f *File) Readdir(n int) ([]FileInfo, error) {
if f == nil {
return nil, ErrInvalid
}