From 6bf9b142898fb6a9ef34ddb06f07257f134bb3f4 Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Mon, 17 Jun 2024 13:28:26 +0200 Subject: [PATCH] fixup docs --- iroh-net/src/endpoint.rs | 2 +- iroh-net/src/magicsock.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iroh-net/src/endpoint.rs b/iroh-net/src/endpoint.rs index 058e8ce059..4e6ea7f2fd 100644 --- a/iroh-net/src/endpoint.rs +++ b/iroh-net/src/endpoint.rs @@ -567,7 +567,7 @@ impl Endpoint { /// /// The returned [`NodeAddr`] will have the current [`RelayUrl`] and local IP endpoints /// as they would be returned by [`Endpoint::home_relay`] and - /// [`Endpoint::local_endpoints`]. + /// [`Endpoint::direct_addresses`]. pub async fn node_addr(&self) -> Result { let addrs = self .direct_addresses() diff --git a/iroh-net/src/magicsock.rs b/iroh-net/src/magicsock.rs index 7edd952bf1..6a4d260a53 100644 --- a/iroh-net/src/magicsock.rs +++ b/iroh-net/src/magicsock.rs @@ -2590,7 +2590,7 @@ fn disco_message_sent(msg: &disco::Message) { /// /// Direct addresses are UDP socket addresses on which an iroh-net node could potentially be /// contacted. These can come from various sources depending on the network topology of the -/// iroh-net node, see [`DirectAddressType`] for the several kinds of sources. +/// iroh-net node, see [`DirectAddrType`] for the several kinds of sources. #[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)] pub struct DirectAddr { /// The address. @@ -2602,7 +2602,7 @@ pub struct DirectAddr { /// The type of direct address. /// /// These are the various sources or origins from which an iroh-net node might have found a -/// possible [`DirectAddress`]. +/// possible [`DirectAddr`]. #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] pub enum DirectAddrType { /// Not yet determined..