From 9782ddf0f46669366e87fdc1d38a8d53cf435a75 Mon Sep 17 00:00:00 2001 From: Gengar Date: Fri, 8 Aug 2025 16:53:24 +0300 Subject: [PATCH 1/3] Update transport.rs --- core/src/transport.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] From 61514189c790f9fa729a18b964df7448218e80a5 Mon Sep 17 00:00:00 2001 From: Gengar Date: Fri, 8 Aug 2025 17:07:24 +0300 Subject: [PATCH 2/3] Update lib.rs --- transports/tcp/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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." From efe3a3064e90cea05a83239dd64bf2d73871a8ec Mon Sep 17 00:00:00 2001 From: Gengar Date: Fri, 8 Aug 2025 17:36:38 +0300 Subject: [PATCH 3/3] Update lib.rs --- misc/multistream-select/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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).