Skip to content

Commit

Permalink
transports/quic: use intra-doc links in docs
Browse files Browse the repository at this point in the history
Co-authored-by: Max Inden <[email protected]>
  • Loading branch information
elenaf9 and mxinden committed Jul 10, 2022
1 parent 39d855c commit 0e797cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transports/quic/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub struct Endpoint {
}

impl Endpoint {
/// Builds a new `Endpoint` that is listening on the [`SocketAddr`].
/// Builds a new [`Endpoint`] that is listening on the [`SocketAddr`].
pub fn new_bidirectional(
config: Config,
socket_addr: SocketAddr,
Expand All @@ -108,7 +108,7 @@ impl Endpoint {
Ok((endpoint, new_connections_rx))
}

/// Builds a new `Endpoint` that only supports outbound connections.
/// Builds a new [`Endpoint`] that only supports outbound connections.
pub fn new_dialer(config: Config) -> Result<Arc<Endpoint>, transport::Error> {
let socket_addr = SocketAddrV4::new(Ipv4Addr::LOCALHOST, 0);
Self::new(config, socket_addr.into(), None)
Expand Down

0 comments on commit 0e797cf

Please sign in to comment.