diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 7a8e8eee2f..7302501e5f 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -253,7 +253,7 @@ impl RuntimeGenerator { // Runtime APIs in the metadata by name. pub static RUNTIME_APIS: [&str; #runtime_api_names_len] = [ #(#runtime_api_names,)* ]; - /// The error type returned when there is a runtime issue. + /// The error type is returned when there is a runtime issue. pub type DispatchError = #types_mod_ident::sp_runtime::DispatchError; /// The outer event enum. diff --git a/core/src/blocks/extrinsics.rs b/core/src/blocks/extrinsics.rs index 0af853fc8b..b8afeca47d 100644 --- a/core/src/blocks/extrinsics.rs +++ b/core/src/blocks/extrinsics.rs @@ -691,7 +691,7 @@ mod tests { .expect("Valid dynamic parameters are provided"); // Note: `create_unsigned` produces the extrinsic bytes by prefixing the extrinsic length. - // The length is handled deserializing `ChainBlockExtrinsic`, therefore the first byte is not needed. + // The length is handled by deserializing `ChainBlockExtrinsic`, therefore the first byte is not needed. let extrinsic = ExtrinsicDetails::::decode_from( 1, tx_encoded.encoded(), diff --git a/core/src/custom_values/address.rs b/core/src/custom_values/address.rs index 73100dde56..6bbacaed68 100644 --- a/core/src/custom_values/address.rs +++ b/core/src/custom_values/address.rs @@ -11,7 +11,7 @@ use derive_where::derive_where; /// Use this with [`Address::IsDecodable`]. pub use crate::utils::Yes; -/// This represents the address of a custom value in in the metadata. +/// This represents the address of a custom value in the metadata. /// Anything that implements it can be used to fetch custom values from the metadata. /// The trait is implemented by [`str`] for dynamic lookup and [`StaticAddress`] for static queries. pub trait Address {