]> Cypherpunks repositories - gostls13.git/commitdiff
os: fix windows build
authorRob Pike <r@golang.org>
Tue, 20 Aug 2013 04:45:46 +0000 (14:45 +1000)
committerRob Pike <r@golang.org>
Tue, 20 Aug 2013 04:45:46 +0000 (14:45 +1000)
The os windows source uses file as the receiver, not f.
TBR=golang-dev@googlegroups.com

R=adg
CC=golang-dev
https://golang.org/cl/12922044

src/pkg/os/file_windows.go

index f6e53d4ff016f9ca6beff9bc25bdff44a81f4ec7..fab7de34282504bfe367d20024c6d9e8f95a10f9 100644 (file)
@@ -153,7 +153,7 @@ func OpenFile(name string, flag int, perm FileMode) (file *File, err error) {
 // Close closes the File, rendering it unusable for I/O.
 // It returns an error, if any.
 func (file *File) Close() error {
-       if f == nil {
+       if file == nil {
                return ErrInvalid
        }
        return file.file.close()