Skip to content

Commit

Permalink
chore: fix several typos in documentation
Browse files Browse the repository at this point in the history
Pull-Request: libp2p#5008.
  • Loading branch information
Frierened authored Dec 24, 2023
1 parent b6bb02b commit 2c6da31
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion transports/dns/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ where
let resolver = self.resolver.clone();
let inner = self.inner.clone();

// Asynchronlously resolve all DNS names in the address before proceeding
// Asynchronously resolve all DNS names in the address before proceeding
// with dialing on the underlying transport.
Ok(async move {
let mut last_err = None;
Expand Down
2 changes: 1 addition & 1 deletion transports/noise/tests/smoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use tracing_subscriber::EnvFilter;

#[allow(dead_code)]
fn core_upgrade_compat() {
// Tests API compaibility with the libp2p-core upgrade API,
// Tests API compatibility with the libp2p-core upgrade API,
// i.e. if it compiles, the "test" is considered a success.
let id_keys = identity::Keypair::generate_ed25519();
let noise = noise::Config::new(&id_keys).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion transports/pnet/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## 0.23.1

<!-- Interal changes:
<!-- Internal changes:
- Allow new clippy lint.
Expand Down
4 changes: 2 additions & 2 deletions transports/tls/src/certificate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use libp2p_identity::PeerId;
use x509_parser::{prelude::*, signature_algorithm::SignatureAlgorithm};

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

Expand Down Expand Up @@ -374,7 +374,7 @@ impl P2pCertificate<'_> {
}
if signature_algorithm.algorithm == OID_PKCS1_RSASSAPSS {
// According to https://datatracker.ietf.org/doc/html/rfc4055#section-3.1:
// Inside of params there shuld be a sequence of:
// Inside of params there should be a sequence of:
// - Hash Algorithm
// - Mask Algorithm
// - Salt Length
Expand Down
2 changes: 1 addition & 1 deletion transports/webrtc/src/tokio/udp_mux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ impl UDPMuxNewAddr {

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

0 comments on commit 2c6da31

Please sign in to comment.