Skip to content

Commit 56c0e0e

Browse files
committed
improve comments in MdnsDiscoveryBuilder
1 parent 4195c8f commit 56c0e0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iroh/src/discovery/mdns.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub struct MdnsDiscoveryBuilder {
133133
}
134134

135135
impl MdnsDiscoveryBuilder {
136-
/// See [`MdnsDiscovery::builder`].
136+
/// Creates a new [`MdnsDiscoveryBuilder`] with default settings.
137137
pub fn new() -> Self {
138138
Self { advertise: true }
139139
}
@@ -146,7 +146,7 @@ impl MdnsDiscoveryBuilder {
146146
self
147147
}
148148

149-
/// See [`MdnsDiscovery::new`].
149+
/// Builds an [`MdnsDiscovery`] instance with the configured settings.
150150
pub fn build(self, node_id: NodeId) -> Result<MdnsDiscovery, IntoDiscoveryError> {
151151
MdnsDiscovery::new(node_id, self.advertise)
152152
}

0 commit comments

Comments
 (0)