diff --git a/CHANGELOG.md b/CHANGELOG.md index a32260734c..0a9969c80e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,7 +64,7 @@ pub mod polkadot {} #[tokio::main] async fn main() -> Result<(), Box> { - // Create a new client with with a reconnecting RPC client. + // Create a new client with a reconnecting RPC client. let rpc = Client::builder() // We can configure the retry policy; here to an exponential backoff. // This API accepts an iterator of retry delays, and here we use `take` diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 393dccfe04..7a8e8eee2f 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -262,7 +262,7 @@ impl RuntimeGenerator { /// The outer extrinsic enum. pub type Call = #call_path; - /// The outer error enum representing the DispatchError's Module variant. + /// The outer error enum represents the DispatchError's Module variant. pub type Error = #error_path; pub fn constants() -> ConstantsApi { diff --git a/codegen/src/api/runtime_apis.rs b/codegen/src/api/runtime_apis.rs index 967dfa6b18..0cee13abfd 100644 --- a/codegen/src/api/runtime_apis.rs +++ b/codegen/src/api/runtime_apis.rs @@ -22,7 +22,7 @@ fn generate_runtime_api( type_gen: &TypeGenerator, crate_path: &syn::Path, ) -> Result<(TokenStream2, TokenStream2), CodegenError> { - // Trait name must remain as is (upper case) to identity the runtime call. + // Trait name must remain as is (upper case) to identify the runtime call. let trait_name_str = api.name(); // The snake case for the trait name. let trait_name_snake = format_ident!("{}", api.name().to_snake_case());