Skip to content

Commit fa9b6c8

Browse files
committed
Fix typos in Rust doc
1 parent 221a003 commit fa9b6c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mithril-relay/src/p2p/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use thiserror::Error;
22

3-
/// [EraMarkersPayload] related errors.
3+
/// [Peer] related errors.
44
#[derive(Debug, Error)]
55
pub enum PeerError {
66
/// Topic does not exist

mithril-relay/src/p2p/peer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ use std::{collections::HashMap, time::Duration};
1414

1515
use crate::{p2p::PeerError, MITHRIL_SIGNATURES_TOPIC_NAME};
1616

17-
/// Custom network behaviour
17+
/// [Peer] custom network behaviour
1818
#[derive(NetworkBehaviour)]
1919
pub struct PeerBehaviour {
2020
gossipsub: gossipsub::Behaviour,
2121
ping: ping::Behaviour,
2222
}
2323

24-
/// Peer event that is polled from the swarm
24+
/// [Peer] event that is polled from the swarm
2525
#[derive(Debug)]
2626
pub enum PeerEvent {
2727
/// The peer is listening on an address

0 commit comments

Comments
 (0)