diff --git a/docs/src/man/hts-files.md b/docs/src/man/hts-files.md index de87b32..3f57ef7 100644 --- a/docs/src/man/hts-files.md +++ b/docs/src/man/hts-files.md @@ -58,6 +58,7 @@ In-place reading reuses a pre-allocated object for every record and less memory reader = open(BAM.Reader, "data.bam") record = BAM.Record() while !eof(reader) + empty!(record) read!(reader, record) # do something end