Skip to content

Commit a62aea4

Browse files
authored
Fix typos (#2112)
1 parent dcc97f3 commit a62aea4

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# - Multiple owners are supported.
1414
# - Either handle (e.g, @github_user or @github_org/team) or email can be used. Keep in mind,
1515
# that handles might work better because they are more recognizable on GitHub,
16-
# eyou can use them for mentioning unlike an email.
16+
# you can use them for mentioning unlike an email.
1717
# - The latest matching rule, if multiple, takes precedence.
1818

1919
# main codeowner

historic/src/client/offline_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub trait OfflineClientAtBlockT<'client, T: Config + 'client> {
6262
// private to allow changes if possible.
6363
#[doc(hidden)]
6464
pub struct OfflineClientAtBlock<'client, T: Config + 'client> {
65-
/// The configuration for thie chain.
65+
/// The configuration for this chain.
6666
config: &'client T,
6767
/// Historic types to use at this block number.
6868
legacy_types: TypeRegistrySet<'client>,

historic/src/client/online_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl<T: Config> OnlineClient<T> {
133133
};
134134

135135
let mut historic_types = config.legacy_types_for_spec_version(spec_version);
136-
// The metadata can be used to construct call and event types instead of us havign to hardcode them all for every spec version:
136+
// The metadata can be used to construct call and event types instead of us having to hardcode them all for every spec version:
137137
let types_from_metadata = frame_decode::helpers::type_registry_from_metadata_any(&metadata)
138138
.map_err(
139139
|parse_error| OnlineClientAtBlockError::CannotInjectMetadataTypes { parse_error },

metadata/src/utils/validation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ pub fn get_runtime_api_hash(runtime_api: &RuntimeApiMethodMetadata) -> Hash {
394394
/// Obtain the hash of all of a runtime API trait, including all of its methods.
395395
pub fn get_runtime_apis_hash(trait_metadata: RuntimeApiMetadata) -> Hash {
396396
// Each API is already hashed considering the trait name, so we don't need
397-
// to consider thr trait name again here.
397+
// to consider the trait name again here.
398398
trait_metadata
399399
.methods()
400400
.fold([0u8; HASH_LEN], |bytes, method_metadata| {
@@ -431,7 +431,7 @@ pub fn get_view_function_hash(view_function: &ViewFunctionMetadata) -> Hash {
431431
/// Obtain the hash of all of the view functions in a pallet, including all of its methods.
432432
fn get_pallet_view_functions_hash(pallet_metadata: &PalletMetadata) -> Hash {
433433
// Each API is already hashed considering the trait name, so we don't need
434-
// to consider thr trait name again here.
434+
// to consider the trait name again here.
435435
pallet_metadata
436436
.view_functions()
437437
.fold([0u8; HASH_LEN], |bytes, method_metadata| {

subxt/src/error/dispatch_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ pub enum ArithmeticError {
118118
DivisionByZero,
119119
}
120120

121-
/// An error relating to thr transactional layers when dispatching a transaction.
121+
/// An error relating to the transactional layers when dispatching a transaction.
122122
#[derive(scale_decode::DecodeAsType, Debug, thiserror::Error, PartialEq, Eq)]
123123
#[non_exhaustive]
124124
pub enum TransactionalError {

0 commit comments

Comments
 (0)