]> Cypherpunks repositories - gostls13.git/commitdiff
os: fix typo in comment (Readir -> Readdir)
authorJonathan Boulle <jonathanboulle@gmail.com>
Tue, 30 Aug 2016 00:09:19 +0000 (02:09 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 30 Aug 2016 01:24:57 +0000 (01:24 +0000)
Change-Id: I8434925661dc11396380af65c192c9f0dc191287
Reviewed-on: https://go-review.googlesource.com/27973
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/os/dir_unix.go

index 9337144c3ac0e154254c217cd0a2951e499afff7..03d949af1a2c93e78542d158911fe999d71f5a84 100644 (file)
@@ -35,7 +35,7 @@ func (f *File) readdir(n int) (fi []FileInfo, err error) {
                fi = append(fi, fip)
        }
        if len(fi) == 0 && err == nil && n > 0 {
-               // Per File.Readir, the slice must be non-empty or err
+               // Per File.Readdir, the slice must be non-empty or err
                // must be non-nil if n > 0.
                err = io.EOF
        }