Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typos #5079

Merged
merged 10 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading