Skip to content

Commit fb5553c

Browse files
authored
chore: fix typos on the repositories doc
Pull-Request: #6146.
1 parent f50685f commit fb5553c

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

core/src/transport.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static NEXT_LISTENER_ID: AtomicUsize = AtomicUsize::new(1);
6262
pub enum PortUse {
6363
/// Always allocate a new port for the dial.
6464
New,
65-
/// Best effor reusing of an existing port.
65+
/// Best effort reusing of an existing port.
6666
///
6767
/// If there is no listener present that can be used to dial, a new port is allocated.
6868
#[default]

misc/multistream-select/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ pub enum Version {
118118
///
119119
/// This strategy is only applicable for the node with the role of "dialer"
120120
/// in the negotiation and only if the dialer supports just a single
121-
/// application protocol. In that case the dialer immedidately "settles"
121+
/// application protocol. In that case the dialer immediately "settles"
122122
/// on that protocol, buffering the negotiation messages to be sent
123123
/// with the first round of application protocol data (or an attempt
124124
/// is made to read from the `Negotiated` I/O stream).

protocols/kad/src/behaviour.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2768,7 +2768,7 @@ pub enum Event {
27682768
result: QueryResult,
27692769
/// Execution statistics from the query.
27702770
stats: QueryStats,
2771-
/// Indicates which event this is, if therer are multiple responses for a single query.
2771+
/// Indicates which event this is, if there are multiple responses for a single query.
27722772
step: ProgressStep,
27732773
},
27742774

protocols/kad/src/query/peers/closest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ mod tests {
713713
_ => panic!("No peer."),
714714
};
715715
iter.on_success(&peer1, closer.clone());
716-
// Duplicate result from te same peer.
716+
// Duplicate result from the same peer.
717717
iter.on_success(&peer1, closer.clone());
718718

719719
// If there is a second peer, let it also report the same "closer" peer.

swarm/src/connection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ enum Shutdown {
760760
Later(Delay),
761761
}
762762

763-
// Structure used to avoid allocations when storing the protocols in the `HashMap.
763+
// Structure used to avoid allocations when storing the protocols in the `HashMap`.
764764
// Instead of allocating a new `String` for the key,
765765
// we use `T::as_ref()` in `Hash`, `Eq` and `PartialEq` requirements.
766766
pub(crate) struct AsStrHashEq<T>(pub(crate) T);

transports/tcp/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ impl Config {
165165
///
166166
/// # Deprecation Notice
167167
///
168-
/// The new implementation works on a per-connaction basis, defined by the behaviour. This
169-
/// removes the necessaity to configure the transport for port reuse, instead the behaviour
168+
/// The new implementation works on a per-connection basis, defined by the behaviour. This
169+
/// removes the necessity to configure the transport for port reuse, instead the behaviour
170170
/// requiring this behaviour can decide whether to use port reuse or not.
171171
///
172172
/// The API to configure port reuse is part of [`Transport`] and the option can be found in
@@ -175,7 +175,7 @@ impl Config {
175175
/// If [`PortUse::Reuse`] is enabled, the transport will try to reuse the local port of the
176176
/// listener. If that's not possible, i.e. there is no listener or the transport doesn't allow
177177
/// a direct control over ports, a new port (or the default behaviour) is used. If port reuse
178-
/// is enabled for a connection, this option will be treated on a best-effor basis.
178+
/// is enabled for a connection, this option will be treated on a best-effort basis.
179179
#[deprecated(
180180
since = "0.42.0",
181181
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."

transports/tls/src/certificate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ fn parse_unverified(der_input: &[u8]) -> Result<P2pCertificate<'_>, webpki::Erro
185185
}
186186

187187
if oid == &p2p_ext_oid {
188-
// The public host key and the signature are ANS.1-encoded
188+
// The public host key and the signature are ASN.1-encoded
189189
// into the SignedKey data structure, which is carried
190190
// in the libp2p Public Key Extension.
191191
// SignedKey ::= SEQUENCE {
@@ -254,7 +254,7 @@ fn make_libp2p_extension(
254254
.map_err(|_| rcgen::Error::RingUnspecified)?
255255
};
256256

257-
// The public host key and the signature are ANS.1-encoded
257+
// The public host key and the signature are ASN.1-encoded
258258
// into the SignedKey data structure, which is carried
259259
// in the libp2p Public Key Extension.
260260
// SignedKey ::= SEQUENCE {

transports/webrtc/src/tokio/upgrade.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ fn setting_engine(
181181

182182
// Select only the first address of the local candidates.
183183
// See https://github.com/libp2p/rust-libp2p/pull/5448#discussion_r2017418520.
184-
// TODO: remove when https://github.com/webrtc-rs/webrtc/issues/662 get's addressed.
184+
// TODO: remove when https://github.com/webrtc-rs/webrtc/issues/662 gets addressed.
185185
se.set_ip_filter(Box::new({
186186
let once = AtomicBool::new(true);
187187
move |_ip| {

0 commit comments

Comments
 (0)