Skip to content

Commit af48930

Browse files
update doc
1 parent 08a4888 commit af48930

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/src/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ subdata = NCDataset("/tmp/test.nc")["temperature"][10:30,30:5:end]
122122
```
123123

124124
This might be useful in an interactive session. However, the file `test.nc` is not closed, which can be a problem if you open many files. On Linux the number of opened files is often limited to 1024 (soft limit). If you write to a file, you should also always close the file to make sure that the data is properly written to the disk.
125+
(open files will get closed eventually when the dataset variable is finalized by julia's garbage collector).
125126

126127
An alternative way to ensure the file has been closed is to use a `do` block: the file will be closed automatically when leaving the block.
127128

0 commit comments

Comments
 (0)