Browse Source

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

master
Arsen Musayelyan 8 months ago
parent
commit
8aa6f45db2
  1. 1
      README.md

1
README.md

@ -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)

Loading…
Cancel
Save