Commit 94b42fb1 authored by Rob Pike's avatar Rob Pike

os: fix windows build

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
parent 4cb086b8
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment