Skip to content

Commit 2c6da31

Browse files
authored
chore: fix several typos in documentation
Pull-Request: #5008.
1 parent b6bb02b commit 2c6da31

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

transports/dns/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ where
277277
let resolver = self.resolver.clone();
278278
let inner = self.inner.clone();
279279

280-
// Asynchronlously resolve all DNS names in the address before proceeding
280+
// Asynchronously resolve all DNS names in the address before proceeding
281281
// with dialing on the underlying transport.
282282
Ok(async move {
283283
let mut last_err = None;

transports/noise/tests/smoke.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use tracing_subscriber::EnvFilter;
3030

3131
#[allow(dead_code)]
3232
fn core_upgrade_compat() {
33-
// Tests API compaibility with the libp2p-core upgrade API,
33+
// Tests API compatibility with the libp2p-core upgrade API,
3434
// i.e. if it compiles, the "test" is considered a success.
3535
let id_keys = identity::Keypair::generate_ed25519();
3636
let noise = noise::Config::new(&id_keys).unwrap();

transports/pnet/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
## 0.23.1
55

6-
<!-- Interal changes:
6+
<!-- Internal changes:
77
88
- Allow new clippy lint.
99

transports/tls/src/certificate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use libp2p_identity::PeerId;
2727
use x509_parser::{prelude::*, signature_algorithm::SignatureAlgorithm};
2828

2929
/// The libp2p Public Key Extension is a X.509 extension
30-
/// with the Object Identier 1.3.6.1.4.1.53594.1.1,
30+
/// with the Object Identifier 1.3.6.1.4.1.53594.1.1,
3131
/// allocated by IANA to the libp2p project at Protocol Labs.
3232
const P2P_EXT_OID: [u64; 9] = [1, 3, 6, 1, 4, 1, 53594, 1, 1];
3333

@@ -374,7 +374,7 @@ impl P2pCertificate<'_> {
374374
}
375375
if signature_algorithm.algorithm == OID_PKCS1_RSASSAPSS {
376376
// According to https://datatracker.ietf.org/doc/html/rfc4055#section-3.1:
377-
// Inside of params there shuld be a sequence of:
377+
// Inside of params there should be a sequence of:
378378
// - Hash Algorithm
379379
// - Mask Algorithm
380380
// - Salt Length

transports/webrtc/src/tokio/udp_mux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ impl UDPMuxNewAddr {
337337

338338
let conn = match conn {
339339
// If we couldn't find the connection based on source address, see if
340-
// this is a STUN mesage and if so if we can find the connection based on ufrag.
340+
// this is a STUN message and if so if we can find the connection based on ufrag.
341341
None if is_stun_message(read.filled()) => {
342342
match self.conn_from_stun_message(read.filled(), &addr) {
343343
Some(Ok(s)) => Some(s),

0 commit comments

Comments
 (0)