Skip to content

Commit

Permalink
Fix doc example
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
  • Loading branch information
Jarema committed Oct 14, 2024
1 parent e627702 commit 50e3849
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions async-nats/src/jetstream/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,11 @@ impl Stream<Info> {
///
/// let mut stream = jetstream.get_stream("events").await?;
///
/// let info = stream.info_with_subjects().await?;
/// let mut info = stream.info_with_subjects("events.>").await?;
///
/// while let Some(subject) = info.next().await {
/// println!("Subject: {}", subject.unwrap());
/// let (subject, count) = subject?;
/// println!("Subject: {} count: {}", subject, count);
/// }
/// # Ok(())
/// # }
Expand Down

0 comments on commit 50e3849

Please sign in to comment.