Commit eb7d5696 authored by Nigel Tao's avatar Nigel Tao

os: fix documentation typos: s/an array/a slice/.

R=dsymonds
CC=golang-dev
https://golang.org/cl/6736057
parent 2e67dd86
...@@ -89,7 +89,7 @@ func Hostname() (name string, err error) { ...@@ -89,7 +89,7 @@ func Hostname() (name string, err error) {
} }
// Readdir reads the contents of the directory associated with file and // Readdir reads the contents of the directory associated with file and
// returns an array of up to n FileInfo values, as would be returned // returns a slice of up to n FileInfo values, as would be returned
// by Lstat, in directory order. Subsequent calls on the same file will yield // by Lstat, in directory order. Subsequent calls on the same file will yield
// further FileInfos. // further FileInfos.
// //
......
...@@ -185,7 +185,7 @@ func (f *File) Seek(offset int64, whence int) (ret int64, err error) { ...@@ -185,7 +185,7 @@ func (f *File) Seek(offset int64, whence int) (ret int64, err error) {
} }
// WriteString is like Write, but writes the contents of string s rather than // WriteString is like Write, but writes the contents of string s rather than
// an array of bytes. // a slice of bytes.
func (f *File) WriteString(s string) (ret int, err error) { func (f *File) WriteString(s string) (ret int, err error) {
if f == nil { if f == nil {
return 0, ErrInvalid return 0, ErrInvalid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment