Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Commit

Permalink
doc: MultiaddrWithPeerId fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaslong committed Oct 8, 2020
1 parent d5f4c72 commit 2cf4e58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/p2p/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ impl FromStr for MultiaddrWithoutPeerId {
/// don't support it being contained within the `Multiaddr`.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct MultiaddrWithPeerId {
/// The peer without its address.
/// The [`Multiaddr`] without the [`Protocol::P2p`] suffix.
pub multiaddr: MultiaddrWithoutPeerId,
/// The address of the peer.
/// The peer id from the [`Protocol::P2p`] suffix.
pub peer_id: PeerId,
}

Expand Down

0 comments on commit 2cf4e58

Please sign in to comment.