Skip to content

Commit d2c4ae4

Browse files
committed
improve example
1 parent 20ea91b commit d2c4ae4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ go get github.com/martinlindhe/subtitles
2121
Fetch subtitle from thesubdb.com:
2222
```go
2323
f, _ := os.Open(fileName)
24+
defer f.Close()
2425

2526
finder := NewSubFinder(f, fileName, "en")
2627

0 commit comments

Comments
 (0)