From 3c8934cad1b66ef23ce5bfe2086f6ad4e8bd632b Mon Sep 17 00:00:00 2001 From: Michael Macias Date: Sun, 5 May 2024 15:08:08 -0500 Subject: [PATCH] bam/async/io/reader: Use format records stream in example --- noodles-bam/src/async/io/reader.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/noodles-bam/src/async/io/reader.rs b/noodles-bam/src/async/io/reader.rs index 87d4ee611..360d41c16 100644 --- a/noodles-bam/src/async/io/reader.rs +++ b/noodles-bam/src/async/io/reader.rs @@ -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(())