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

Commit 2cf4e58

Browse files
committed
doc: MultiaddrWithPeerId fixes
1 parent d5f4c72 commit 2cf4e58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/p2p/addr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ impl FromStr for MultiaddrWithoutPeerId {
8282
/// don't support it being contained within the `Multiaddr`.
8383
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
8484
pub struct MultiaddrWithPeerId {
85-
/// The peer without its address.
85+
/// The [`Multiaddr`] without the [`Protocol::P2p`] suffix.
8686
pub multiaddr: MultiaddrWithoutPeerId,
87-
/// The address of the peer.
87+
/// The peer id from the [`Protocol::P2p`] suffix.
8888
pub peer_id: PeerId,
8989
}
9090

0 commit comments

Comments
 (0)