aboutsummaryrefslogtreecommitdiff
path: root/src/io
diff options
context:
space:
mode:
authorNigel Tao <nigeltao@golang.org>2015-09-01 12:31:18 +1000
committerNigel Tao <nigeltao@golang.org>2015-09-01 03:22:13 +0000
commit8ceaefb74abf5ba9ae709b62323cc754208b43e2 (patch)
tree69292f5176d8d022c8eb617153a112f3b304d2ae /src/io
parente424d5968006167d5c99b3b9959e61950aa50cf8 (diff)
downloadgo-8ceaefb74abf5ba9ae709b62323cc754208b43e2.tar.xz
io/ioutil: clarify docs for ReadDir sort order.
Change-Id: I6a4ab5a1f44b54cfa81a650055460587ceefb2fc Reviewed-on: https://go-review.googlesource.com/14144 Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'src/io')
-rw-r--r--src/io/ioutil/ioutil.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/ioutil/ioutil.go b/src/io/ioutil/ioutil.go
index 909a815632..e90a33f99b 100644
--- a/src/io/ioutil/ioutil.go
+++ b/src/io/ioutil/ioutil.go
@@ -96,7 +96,7 @@ func (f byName) Less(i, j int) bool { return f[i].Name() < f[j].Name() }
func (f byName) Swap(i, j int) { f[i], f[j] = f[j], f[i] }
// ReadDir reads the directory named by dirname and returns
-// a list of sorted directory entries.
+// a list of directory entries sorted by filename.
func ReadDir(dirname string) ([]os.FileInfo, error) {
f, err := os.Open(dirname)
if err != nil {