diff --git a/core/src/connection.rs b/core/src/connection.rs index 7a339b0661b..ff613c5cce0 100644 --- a/core/src/connection.rs +++ b/core/src/connection.rs @@ -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. diff --git a/core/src/transport/upgrade.rs b/core/src/transport/upgrade.rs index 8525ab741ff..9626312b5fb 100644 --- a/core/src/transport/upgrade.rs +++ b/core/src/transport/upgrade.rs @@ -520,7 +520,7 @@ where fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { // 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 { @@ -579,7 +579,7 @@ where fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { // 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 { diff --git a/misc/multistream-select/src/protocol.rs b/misc/multistream-select/src/protocol.rs index d5c2bfa773a..aef9f16c4cf 100644 --- a/misc/multistream-select/src/protocol.rs +++ b/misc/multistream-select/src/protocol.rs @@ -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)] diff --git a/swarm/src/handler/multi.rs b/swarm/src/handler/multi.rs index 0b4549ed733..96a77626c01 100644 --- a/swarm/src/handler/multi.rs +++ b/swarm/src/handler/multi.rs @@ -437,7 +437,7 @@ where pub struct DuplicateProtonameError(Vec); 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 } diff --git a/transports/webtransport-websys/src/utils.rs b/transports/webtransport-websys/src/utils.rs index fcde226be87..55bad08e00c 100644 --- a/transports/webtransport-websys/src/utils.rs +++ b/transports/webtransport-websys/src/utils.rs @@ -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, JsValue> {