1
0
mirror of https://github.com/golang/go synced 2024-11-20 05:44:44 -07:00

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

R=dsymonds
CC=golang-dev
https://golang.org/cl/6736057
This commit is contained in:
Nigel Tao 2012-10-22 16:26:47 +11:00
parent 2e67dd861d
commit eb7d56965b
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ func Hostname() (name string, err error) {
}
// 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
// further FileInfos.
//

View File

@ -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
// an array of bytes.
// a slice of bytes.
func (f *File) WriteString(s string) (ret int, err error) {
if f == nil {
return 0, ErrInvalid