Skip to content

Commit b6c57af

Browse files
authored
Update example_test.go
1 parent e38ca12 commit b6c57af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func Example() {
4141
if _, err := f.Write([]byte("Hello world!")); err != nil {
4242
log.Fatal(err)
4343
}
44-
defer f.Close()
44+
f.Close()
4545

4646
// check it's there
4747
fi, err := client.Lstat("hello.txt")

0 commit comments

Comments
 (0)