mirror of
https://github.com/golang/go
synced 2024-11-25 10:07:56 -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:
parent
4cb086b838
commit
94b42fb14a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user