1
0
forked from Mirror/wren

Merge pull request #474 from minirop/typo-in-doc

missing language specifier and variable declaration
This commit is contained in:
Bob Nystrom
2017-10-19 22:12:25 -07:00
committed by GitHub

View File

@ -347,8 +347,10 @@ they already closed. If not, we call `fwrite()` to write to the file.
The other method is `close()` to let them explicitly close the file:
:::c
void fileClose(WrenVM* vm)
{
FILE** file = (FILE**)wrenGetSlotForeign(vm, 0);
closeFile(file);
}