diff --git a/bridges/modules/ethereum/src/import.rs b/bridges/modules/ethereum/src/import.rs index 2668ebf924..9f93d8dcb2 100644 --- a/bridges/modules/ethereum/src/import.rs +++ b/bridges/modules/ethereum/src/import.rs @@ -29,7 +29,7 @@ use sp_std::{collections::btree_map::BTreeMap, prelude::*}; /// If successful, returns tuple where first element is the number of useful headers /// we have imported and the second element is the number of useless headers (duplicate) /// we have NOT imported. -/// Returns error if fatal error has occured during import. Some valid headers may be +/// Returns error if fatal error has occurred during import. Some valid headers may be /// imported in this case. /// TODO: update me (https://github.com/paritytech/parity-bridges-common/issues/415) #[allow(clippy::too_many_arguments)] diff --git a/bridges/modules/grandpa/src/benchmarking.rs b/bridges/modules/grandpa/src/benchmarking.rs index 02600201f7..d2e73c529d 100644 --- a/bridges/modules/grandpa/src/benchmarking.rs +++ b/bridges/modules/grandpa/src/benchmarking.rs @@ -63,7 +63,7 @@ const MAX_VALIDATOR_SET_SIZE: u32 = 1024; /// Returns number of first header to be imported. /// -/// Since we boostrap the pallet with `HeadersToKeep` already imported headers, +/// Since we bootstrap the pallet with `HeadersToKeep` already imported headers, /// this function computes the next expected header number to import. fn header_number, I: 'static, N: From>() -> N { (T::HeadersToKeep::get() + 1).into() diff --git a/bridges/primitives/token-swap/src/lib.rs b/bridges/primitives/token-swap/src/lib.rs index e5575e73b0..5509d2b72c 100644 --- a/bridges/primitives/token-swap/src/lib.rs +++ b/bridges/primitives/token-swap/src/lib.rs @@ -27,7 +27,7 @@ pub enum TokenSwapType { /// The `target_account_at_bridged_chain` is temporary and only have funds for single swap. /// /// ***WARNING**: if `target_account_at_bridged_chain` still exists after the swap has been - /// completed (either by claiming or cancelling), the `source_account_at_this_chain` will be able + /// completed (either by claiming or canceling), the `source_account_at_this_chain` will be able /// to restart the swap again and repeat the swap until `target_account_at_bridged_chain` depletes. TemporaryTargetAccountAtBridgedChain, /// This swap type prevents `source_account_at_this_chain` from restarting the swap after it has diff --git a/bridges/relays/bin-ethereum/src/rpc_errors.rs b/bridges/relays/bin-ethereum/src/rpc_errors.rs index 06307bcf39..f0f28b0c40 100644 --- a/bridges/relays/bin-ethereum/src/rpc_errors.rs +++ b/bridges/relays/bin-ethereum/src/rpc_errors.rs @@ -27,7 +27,7 @@ pub enum RpcError { Serialization(serde_json::Error), /// An error occurred when interacting with an Ethereum node. Ethereum(EthereumNodeError), - /// An error occured when interacting with a Substrate node. + /// An error occurred when interacting with a Substrate node. Substrate(SubstrateNodeError), /// Error running relay loop. SyncLoop(String), diff --git a/bridges/relays/headers/src/sync_types.rs b/bridges/relays/headers/src/sync_types.rs index f6c36758b8..05ed25114e 100644 --- a/bridges/relays/headers/src/sync_types.rs +++ b/bridges/relays/headers/src/sync_types.rs @@ -159,7 +159,7 @@ pub struct SubmittedHeaders { /// IDs of ignored headers that we have decided not to submit (they are either rejected by /// target node immediately, or their descendants of incomplete headers). pub rejected: Vec, - /// Fatal target node error, if it has occured during submission. + /// Fatal target node error, if it has occurred during submission. pub fatal_error: Option, }