From 1f57e8fd1ac60ae226d2764c09000bf82d66fcf6 Mon Sep 17 00:00:00 2001 From: Donn Pawelek Date: Mon, 30 Jun 2025 11:20:07 +0200 Subject: [PATCH] docs: fix minor comment typos (#2027) --- core/src/utils/era.rs | 2 +- lightclient/src/lib.rs | 2 +- rpcs/src/client/mock_rpc_client.rs | 2 +- subxt/src/backend/mod.rs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/utils/era.rs b/core/src/utils/era.rs index d86ef78a94..43875fcdab 100644 --- a/core/src/utils/era.rs +++ b/core/src/utils/era.rs @@ -156,7 +156,7 @@ impl Visitor for EraVisitor { type TypeResolver = R; // Unwrap any newtype wrappers around the era, eg the CheckMortality extension (which actually - // has 2 fields, but scale_info seems to autoamtically ignore the PhantomData field). This + // has 2 fields, but scale_info seems to automatically ignore the PhantomData field). This // allows us to decode directly from CheckMortality into Era. fn visit_composite<'scale, 'resolver>( self, diff --git a/lightclient/src/lib.rs b/lightclient/src/lib.rs index aadf808df5..aa002142a1 100644 --- a/lightclient/src/lib.rs +++ b/lightclient/src/lib.rs @@ -189,7 +189,7 @@ pub struct LightClientRpc { } impl LightClientRpc { - // Dev note: this would provide a "low leveL" interface if one is needed. + // Dev note: this would provide a "low level" interface if one is needed. // Do we actually need to provide this, or can we entirely hide Smoldot? pub(crate) fn new_raw( client: impl Into>, diff --git a/rpcs/src/client/mock_rpc_client.rs b/rpcs/src/client/mock_rpc_client.rs index cad56c8042..69f4000958 100644 --- a/rpcs/src/client/mock_rpc_client.rs +++ b/rpcs/src/client/mock_rpc_client.rs @@ -232,7 +232,7 @@ impl RpcClientT for MockRpcClient { } drop(handlers_once); - // Call a specific handler for the subscrpition if one is found. + // Call a specific handler for the subscriptions if one is found. let mut handlers = self.subscription_handlers.lock().unwrap(); if let Some(handler) = handlers.get_mut(sub) { return handler(sub, params, unsub) diff --git a/subxt/src/backend/mod.rs b/subxt/src/backend/mod.rs index 16ec794c00..f453548484 100644 --- a/subxt/src/backend/mod.rs +++ b/subxt/src/backend/mod.rs @@ -945,7 +945,7 @@ mod test { Err::(disconnected_will_reconnect()) }) .method_handler_once("chainHead_v1_continue", async move |_params| { - // Next call; acknowledge the "continue" and return reamining storage items. + // Next call; acknowledge the "continue" and return remaining storage items. tokio::spawn(async move { tx2.send(storage_items("Id1", &[storage_result("ID2", "Data2")])) .unwrap(); @@ -959,7 +959,7 @@ mod test { let backend = build_backend_spawn_background(rpc_client); - // We should succees, transparently handling `continue`s and `DisconnectWillReconnects`. + // We should success, transparently handling `continue`s and `DisconnectWillReconnects`. let response = backend .storage_fetch_values( ["ID1".into(), "ID2".into(), "ID3".into()].into(),