diff options
Diffstat (limited to 'src/pkg/io/utils.go')
-rw-r--r-- | src/pkg/io/utils.go | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/pkg/io/utils.go b/src/pkg/io/utils.go index 4e3c0c42b..8c5c710b7 100644 --- a/src/pkg/io/utils.go +++ b/src/pkg/io/utils.go @@ -48,15 +48,9 @@ func WriteFile(filename string, data []byte, perm int) os.Error { // A dirList implements sort.Interface. type dirList []*os.Dir -func (d dirList) Len() int { - return len(d); -} -func (d dirList) Less(i, j int) bool { - return d[i].Name < d[j].Name; -} -func (d dirList) Swap(i, j int) { - d[i], d[j] = d[j], d[i]; -} +func (d dirList) Len() int { return len(d) } +func (d dirList) Less(i, j int) bool { return d[i].Name < d[j].Name } +func (d dirList) Swap(i, j int) { d[i], d[j] = d[j], d[i] } // ReadDir reads the directory named by dirname and returns // a list of sorted directory entries. |