Skip to content

Commit ab1eb84

Browse files
committed
f Fix doctest
1 parent aaf778c commit ab1eb84

File tree

1 file changed

+1
-2
lines changed
  • lightning-background-processor/src

1 file changed

+1
-2
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,7 @@ use core::task;
502502
/// # use lightning_background_processor::{process_events_async, GossipSync};
503503
/// # struct MyStore {}
504504
/// # impl lightning::util::persist::KVStore for MyStore {
505-
/// # type Reader = io::Cursor<Vec<u8>>;
506-
/// # fn read(&self, namespace: &str, key: &str) -> io::Result<Self::Reader> { Ok(io::Cursor::new(Vec::new())) }
505+
/// # fn read(&self, namespace: &str, key: &str) -> io::Result<Vec<u8>> { Ok(Vec::new()) }
507506
/// # fn write(&self, namespace: &str, key: &str, buf: &[u8]) -> io::Result<()> { Ok(()) }
508507
/// # fn remove(&self, namespace: &str, key: &str) -> io::Result<()> { Ok(()) }
509508
/// # fn list(&self, namespace: &str) -> io::Result<Vec<String>> { Ok(Vec::new()) }

0 commit comments

Comments
 (0)