From: Nigel Tao Date: Tue, 1 Sep 2015 02:31:18 +0000 (+1000) Subject: io/ioutil: clarify docs for ReadDir sort order. X-Git-Tag: go1.6beta1~1211 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8ceaefb74abf5ba9ae709b62323cc754208b43e2;p=gostls13.git io/ioutil: clarify docs for ReadDir sort order. Change-Id: I6a4ab5a1f44b54cfa81a650055460587ceefb2fc Reviewed-on: https://go-review.googlesource.com/14144 Reviewed-by: Andrew Gerrand --- 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 {