aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNigel Tao <nigeltao@golang.org>2012-10-22 16:26:47 +1100
committerNigel Tao <nigeltao@golang.org>2012-10-22 16:26:47 +1100
commiteb7d56965b0373f52eb0f4ac42f2973a329dc5a4 (patch)
tree71e779d650a90fb0d3a1524ba4c2c2c5bc9794f7 /src
parent2e67dd861d339ea2b8e59ebc479f37cc1840814a (diff)
downloadgo-eb7d56965b0373f52eb0f4ac42f2973a329dc5a4.tar.xz
os: fix documentation typos: s/an array/a slice/.
R=dsymonds CC=golang-dev https://golang.org/cl/6736057
Diffstat (limited to 'src')
-rw-r--r--src/pkg/os/doc.go2
-rw-r--r--src/pkg/os/file.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/os/doc.go b/src/pkg/os/doc.go
index 6a531e0d74..c469e58533 100644
--- a/src/pkg/os/doc.go
+++ b/src/pkg/os/doc.go
@@ -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.
//
diff --git a/src/pkg/os/file.go b/src/pkg/os/file.go
index 4acf35d675..5b1658a715 100644
--- a/src/pkg/os/file.go
+++ b/src/pkg/os/file.go
@@ -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