Skip to content

Commit

Permalink
fixup docs
Browse files Browse the repository at this point in the history
  • Loading branch information
flub committed Jun 17, 2024
1 parent e5a2a98 commit 6bf9b14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion iroh-net/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<NodeAddr> {
let addrs = self
.direct_addresses()
Expand Down
4 changes: 2 additions & 2 deletions iroh-net/src/magicsock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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..
Expand Down

0 comments on commit 6bf9b14

Please sign in to comment.