Skip to content

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
Pull-Request: #5079.
  • Loading branch information
Thabokani authored Feb 22, 2024
1 parent e033385 commit 580c7db
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub enum ConnectedPoint {
/// Multiaddress that was successfully dialed.
address: Multiaddr,
/// Whether the role of the local node on the connection should be
/// overriden. I.e. whether the local node should act as a listener on
/// overridden. I.e. whether the local node should act as a listener on
/// the outgoing connection.
///
/// This option is needed for NAT and firewall hole punching.
Expand Down
4 changes: 2 additions & 2 deletions core/src/transport/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ where

fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
// We use a `this` variable because the compiler can't mutably borrow multiple times
// accross a `Deref`.
// across a `Deref`.
let this = &mut *self;

loop {
Expand Down Expand Up @@ -579,7 +579,7 @@ where

fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
// We use a `this` variable because the compiler can't mutably borrow multiple times
// accross a `Deref`.
// across a `Deref`.
let this = &mut *self;

loop {
Expand Down
2 changes: 1 addition & 1 deletion misc/multistream-select/src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const MSG_PROTOCOL_NA: &[u8] = b"na\n";
/// The encoded form of a multistream-select 'ls' message.
const MSG_LS: &[u8] = b"ls\n";

/// The multistream-select header lines preceeding negotiation.
/// The multistream-select header lines preceding negotiation.
///
/// Every [`Version`] has a corresponding header line.
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
Expand Down
2 changes: 1 addition & 1 deletion swarm/src/handler/multi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ where
pub struct DuplicateProtonameError(Vec<u8>);

impl DuplicateProtonameError {
/// The protocol name bytes that occured in more than one handler.
/// The protocol name bytes that occurred in more than one handler.
pub fn protocol_name(&self) -> &[u8] {
&self.0
}
Expand Down
2 changes: 1 addition & 1 deletion transports/webtransport-websys/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ where
}
}

/// Parse reponse from `ReadableStreamDefaultReader::read`.
/// Parse response from `ReadableStreamDefaultReader::read`.
//
// Ref: https://streams.spec.whatwg.org/#default-reader-prototype
pub(crate) fn parse_reader_response(resp: &JsValue) -> Result<Option<JsValue>, JsValue> {
Expand Down

0 comments on commit 580c7db

Please sign in to comment.