]> Cypherpunks repositories - gostls13.git/commitdiff
os: fix documentation typos: s/an array/a slice/.
authorNigel Tao <nigeltao@golang.org>
Mon, 22 Oct 2012 05:26:47 +0000 (16:26 +1100)
committerNigel Tao <nigeltao@golang.org>
Mon, 22 Oct 2012 05:26:47 +0000 (16:26 +1100)
R=dsymonds
CC=golang-dev
https://golang.org/cl/6736057

src/pkg/os/doc.go
src/pkg/os/file.go

index 6a531e0d74e4488fa47304062f695de9c24a86e0..c469e585331c1bcef222773606006e37ca3a3342 100644 (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.
 //
index 4acf35d675508d62ff25e832acddbb67190ab774..5b1658a7152eced960ab6d4ac5063e55b23e744e 100644 (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