diff --git a/transports/quic/src/endpoint.rs b/transports/quic/src/endpoint.rs index 59804a1bd96..36427a20966 100644 --- a/transports/quic/src/endpoint.rs +++ b/transports/quic/src/endpoint.rs @@ -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, @@ -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, transport::Error> { let socket_addr = SocketAddrV4::new(Ipv4Addr::LOCALHOST, 0); Self::new(config, socket_addr.into(), None)