From 8aba3ea8ca66885a8e0f824f15e832f74d279c59 Mon Sep 17 00:00:00 2001 From: Andronik Ordian Date: Mon, 18 Oct 2021 11:59:46 +0200 Subject: [PATCH] some spelling fixes (#4088) * quotes around Job::ToJob * add new words to dictionary --- polkadot/node/collation-generation/src/lib.rs | 2 +- polkadot/node/metered-channel/src/oneshot.rs | 4 ++-- polkadot/node/subsystem-util/src/lib.rs | 2 +- polkadot/runtime/parachains/src/disputes.rs | 2 +- polkadot/runtime/parachains/src/hrmp.rs | 2 +- polkadot/scripts/gitlab/lingua.dic | 5 +++++ 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/polkadot/node/collation-generation/src/lib.rs b/polkadot/node/collation-generation/src/lib.rs index c4b73b8b71..2d6ef8e6b5 100644 --- a/polkadot/node/collation-generation/src/lib.rs +++ b/polkadot/node/collation-generation/src/lib.rs @@ -62,7 +62,7 @@ impl CollationGenerationSubsystem { /// Conceptually, this is very simple: it just loops forever. /// /// - On incoming overseer messages, it starts or stops jobs as appropriate. - /// - On other incoming messages, if they can be converted into Job::ToJob and + /// - On other incoming messages, if they can be converted into `Job::ToJob` and /// include a hash, then they're forwarded to the appropriate individual job. /// - On outgoing messages from the jobs, it forwards them to the overseer. /// diff --git a/polkadot/node/metered-channel/src/oneshot.rs b/polkadot/node/metered-channel/src/oneshot.rs index bf1a526824..5f2c72cb70 100644 --- a/polkadot/node/metered-channel/src/oneshot.rs +++ b/polkadot/node/metered-channel/src/oneshot.rs @@ -95,7 +95,7 @@ pub fn channel( #[allow(missing_docs)] #[derive(thiserror::Error, Debug)] pub enum Error { - #[error("Oneshot was cancelled.")] + #[error("Oneshot was canceled.")] Canceled(#[source] Canceled, Measurements), #[error("Oneshot did not receive a response within {}", Duration::as_secs_f64(.0))] HardTimeout(Duration, Measurements), @@ -124,7 +124,7 @@ impl MeteredSender { inner.send((Instant::now(), t)).map_err(|(_, t)| t) } - /// Poll if the thing is already cancelled. + /// Poll if the thing is already canceled. pub fn poll_canceled(&mut self, ctx: &mut Context<'_>) -> Poll<()> { self.inner.poll_canceled(ctx) } diff --git a/polkadot/node/subsystem-util/src/lib.rs b/polkadot/node/subsystem-util/src/lib.rs index 0c5e35d1ab..4e4e194e03 100644 --- a/polkadot/node/subsystem-util/src/lib.rs +++ b/polkadot/node/subsystem-util/src/lib.rs @@ -638,7 +638,7 @@ struct JobSubsystemParams { /// Conceptually, this is very simple: it just loops forever. /// /// - On incoming overseer messages, it starts or stops jobs as appropriate. -/// - On other incoming messages, if they can be converted into Job::ToJob and +/// - On other incoming messages, if they can be converted into `Job::ToJob` and /// include a hash, then they're forwarded to the appropriate individual job. /// - On outgoing messages from the jobs, it forwards them to the overseer. pub struct JobSubsystem { diff --git a/polkadot/runtime/parachains/src/disputes.rs b/polkadot/runtime/parachains/src/disputes.rs index 4059ed6378..7dde5f2b51 100644 --- a/polkadot/runtime/parachains/src/disputes.rs +++ b/polkadot/runtime/parachains/src/disputes.rs @@ -708,7 +708,7 @@ impl Pallet { /// /// This functions modifies the state when failing. It is expected to be called in inherent, /// and to fail the extrinsic on error. As invalid inherents are not allowed, the dirty state - /// is not commited. + /// is not committed. pub(crate) fn provide_multi_dispute_data( statement_sets: MultiDisputeStatementSet, ) -> Result, DispatchError> { diff --git a/polkadot/runtime/parachains/src/hrmp.rs b/polkadot/runtime/parachains/src/hrmp.rs index 7e489ba73c..87ba4ad861 100644 --- a/polkadot/runtime/parachains/src/hrmp.rs +++ b/polkadot/runtime/parachains/src/hrmp.rs @@ -480,7 +480,7 @@ pub mod pallet { /// This cancels a pending open channel request. It can be canceled be either of the sender /// or the recipient for that request. The origin must be either of those. /// - /// The cancelling happens immediately. It is not possible to cancel the request if it is + /// The cancellation happens immediately. It is not possible to cancel the request if it is /// already accepted. #[pallet::weight(0)] pub fn hrmp_cancel_open_request( diff --git a/polkadot/scripts/gitlab/lingua.dic b/polkadot/scripts/gitlab/lingua.dic index 24f642591f..3d65a40c81 100644 --- a/polkadot/scripts/gitlab/lingua.dic +++ b/polkadot/scripts/gitlab/lingua.dic @@ -67,6 +67,7 @@ encodable enqueue/D enqueue/DMSG entrypoint/MS +enum ERC-20 ETH/S ethereum/MS @@ -253,6 +254,8 @@ teleporter/SM teleporters testnet/MS timestamp/MS +timeframe +tradeoff transitionary trie/MS trustless/Y @@ -262,6 +265,7 @@ typesystem ubuntu/M UDP UI +unconcluded unfinalize/B unfinalized union/MSG @@ -291,6 +295,7 @@ VMP/SM VPS VRF/SM w3f/MS +wakeup wakeups warming/S wasm/M