diff --git a/core/src/transport.rs b/core/src/transport.rs index 58a9c2a9557..de6ec279468 100644 --- a/core/src/transport.rs +++ b/core/src/transport.rs @@ -62,7 +62,7 @@ static NEXT_LISTENER_ID: AtomicUsize = AtomicUsize::new(1); pub enum PortUse { /// Always allocate a new port for the dial. New, - /// Best effor reusing of an existing port. + /// Best effort reusing of an existing port. /// /// If there is no listener present that can be used to dial, a new port is allocated. #[default] diff --git a/misc/multistream-select/src/lib.rs b/misc/multistream-select/src/lib.rs index 64daf375572..725c3a0e2ba 100644 --- a/misc/multistream-select/src/lib.rs +++ b/misc/multistream-select/src/lib.rs @@ -118,7 +118,7 @@ pub enum Version { /// /// This strategy is only applicable for the node with the role of "dialer" /// in the negotiation and only if the dialer supports just a single - /// application protocol. In that case the dialer immedidately "settles" + /// application protocol. In that case the dialer immediately "settles" /// on that protocol, buffering the negotiation messages to be sent /// with the first round of application protocol data (or an attempt /// is made to read from the `Negotiated` I/O stream). diff --git a/transports/tcp/src/lib.rs b/transports/tcp/src/lib.rs index e34f9ad0506..5abce4acd19 100644 --- a/transports/tcp/src/lib.rs +++ b/transports/tcp/src/lib.rs @@ -165,8 +165,8 @@ impl Config { /// /// # Deprecation Notice /// - /// The new implementation works on a per-connaction basis, defined by the behaviour. This - /// removes the necessaity to configure the transport for port reuse, instead the behaviour + /// The new implementation works on a per-connection basis, defined by the behaviour. This + /// removes the necessity to configure the transport for port reuse, instead the behaviour /// requiring this behaviour can decide whether to use port reuse or not. /// /// The API to configure port reuse is part of [`Transport`] and the option can be found in @@ -175,7 +175,7 @@ impl Config { /// If [`PortUse::Reuse`] is enabled, the transport will try to reuse the local port of the /// listener. If that's not possible, i.e. there is no listener or the transport doesn't allow /// a direct control over ports, a new port (or the default behaviour) is used. If port reuse - /// is enabled for a connection, this option will be treated on a best-effor basis. + /// is enabled for a connection, this option will be treated on a best-effort basis. #[deprecated( since = "0.42.0", note = "This option does nothing now, since the port reuse policy is now decided on a per-connection basis by the behaviour. The function will be removed in a future release."