Skip to content

Commit

Permalink
bam/async/io/reader: Use format records stream in example
Browse files Browse the repository at this point in the history
  • Loading branch information
zaeleus committed May 5, 2024
1 parent fec943c commit 3c8934c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions noodles-bam/src/async/io/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ use crate::{io::reader::resolve_region, Record, MAGIC_NUMBER};
/// use tokio::fs::File;
///
/// let mut reader = File::open("sample.bam").await.map(bam::r#async::io::Reader::new)?;
/// let header = reader.read_header().await?;
/// let _header = reader.read_header().await?;
///
/// let mut records = reader.record_bufs(&header);
/// let mut records = reader.records();
///
/// while let Some(record) = records.try_next().await? {
/// while let Some(_record) = records.try_next().await? {
/// // ...
/// }
/// # Ok(())
Expand Down

0 comments on commit 3c8934c

Please sign in to comment.