Add defer file.Close() to the README interpreter example

This commit is contained in:
Elara 2021-03-08 11:35:15 -08:00
parent ecfbd40df8
commit 8aa6f45db2

View File

@ -26,6 +26,7 @@ func main() {
if err != nil {
log.Fatalln(err)
}
defer file.Close()
ast, err := scpt.Parse(file)
if err != nil {
log.Fatalln(err)