Skip to content

Commit 5725b38

Browse files
committed
fix doc errors
1 parent fea70bb commit 5725b38

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/replication/events.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ use async_broadcast::{broadcast, InactiveReceiver, Receiver, Sender};
44

55
static MAX_EVENT_QUEUE_CAPACITY: usize = 32;
66

7-
/// Event emeitted by [`Events::send_on_get`]
7+
/// Event emitted by [`crate::Hypercore::event_subscribe`]
88
#[derive(Debug, Clone)]
9-
/// Emitted when [`Hypercore::get`] is called when the block is missing.
9+
/// Emitted when [`crate::Hypercore::get`] is called when the block is missing.
1010
pub struct Get {
1111
/// Index of the requested block
1212
pub index: u64,

src/replication/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ use std::future::Future;
1818

1919
/// Methods related to just this core's information
2020
pub trait CoreInfo {
21-
/// Get core info (see: [`Hypercore::info`]
21+
/// Get core info (see: [`crate::Hypercore::info`]
2222
fn info(&self) -> impl Future<Output = Info> + Send;
23-
/// Get the key_pair (see: [`Hypercore::key_pair`]
23+
/// Get the key_pair (see: [`crate::Hypercore::key_pair`]
2424
fn key_pair(&self) -> impl Future<Output = PartialKeypair> + Send;
2525
}
2626

@@ -68,7 +68,7 @@ pub enum CoreMethodsError {
6868
}
6969

7070
/// Trait for things that consume [`crate::Hypercore`] can instead use this trait
71-
/// so they can use all Hypercore-like things such as [`SharedCore`].
71+
/// so they can use all Hypercore-like things such as `SharedCore`.
7272
pub trait CoreMethods: CoreInfo {
7373
/// Check if the core has the block at the given index locally
7474
fn has(&self, index: u64) -> impl Future<Output = bool> + Send;

0 commit comments

Comments
 (0)