1
0
mirror of https://github.com/golang/go synced 2024-11-21 22:54:40 -07:00

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
This commit is contained in:
Rob Pike 2013-08-20 14:45:46 +10:00
parent 4cb086b838
commit 94b42fb14a

View 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()