f Fix doctest
authorElias Rohrer <dev@tnull.de>
Wed, 23 Aug 2023 13:16:49 +0000 (15:16 +0200)
committerElias Rohrer <dev@tnull.de>
Wed, 23 Aug 2023 13:17:09 +0000 (15:17 +0200)
lightning-background-processor/src/lib.rs

index ed9091552f839a505ee8e244f29a5e2ae64ca992..e19a3ac44cc5ab51475d25b49348a1fd58d0c5a3 100644 (file)
@@ -502,8 +502,7 @@ use core::task;
 /// # use lightning_background_processor::{process_events_async, GossipSync};
 /// # struct MyStore {}
 /// # impl lightning::util::persist::KVStore for MyStore {
-/// #     type Reader = io::Cursor<Vec<u8>>;
-/// #     fn read(&self, namespace: &str, key: &str) -> io::Result<Self::Reader> { Ok(io::Cursor::new(Vec::new())) }
+/// #     fn read(&self, namespace: &str, key: &str) -> io::Result<Vec<u8>> { Ok(Vec::new()) }
 /// #     fn write(&self, namespace: &str, key: &str, buf: &[u8]) -> io::Result<()> { Ok(()) }
 /// #     fn remove(&self, namespace: &str, key: &str) -> io::Result<()> { Ok(()) }
 /// #     fn list(&self, namespace: &str) -> io::Result<Vec<String>> { Ok(Vec::new()) }