Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Update doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwhit committed May 17, 2022
1 parent fa0ee20 commit 0da7124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/consensus/common/src/import_queue/buffered_link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
//! # struct DummyLink; impl Link<Block> for DummyLink {}
//! # let mut my_link = DummyLink;
//! let (mut tx, mut rx) = buffered_link::<Block>();
//! tx.blocks_processed(0, 0, vec![]);
//! tx.blocks_processed(0, 0, None, vec![]);
//!
//! // Calls `my_link.blocks_processed(0, 0, vec![])` when polled.
//! // Calls `my_link.blocks_processed(0, 0, None, vec![])` when polled.
//! let _fut = futures::future::poll_fn(move |cx| {
//! rx.poll_actions(cx, &mut my_link);
//! std::task::Poll::Pending::<()>
Expand Down

0 comments on commit 0da7124

Please sign in to comment.