Skip to content
This repository has been archived by the owner on May 2, 2018. It is now read-only.

Commit

Permalink
io/ioutil: clarify docs for ReadDir sort order.
Browse files Browse the repository at this point in the history
Change-Id: I6a4ab5a1f44b54cfa81a650055460587ceefb2fc
Reviewed-on: https://go-review.googlesource.com/14144
Reviewed-by: Andrew Gerrand <[email protected]>
  • Loading branch information
nigeltao committed Sep 1, 2015
1 parent e424d59 commit 8ceaefb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/ioutil/ioutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8ceaefb

Please sign in to comment.