some spelling fixes (#4088)

* quotes around Job::ToJob
* add new words to dictionary
This commit is contained in:
Andronik Ordian
2021-10-18 11:59:46 +02:00
committed by GitHub
parent 4f12ec239d
commit 8aba3ea8ca
6 changed files with 11 additions and 6 deletions
@@ -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.
///
+2 -2
View File
@@ -95,7 +95,7 @@ pub fn channel<T>(
#[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<T> MeteredSender<T> {
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)
}
+1 -1
View File
@@ -638,7 +638,7 @@ struct JobSubsystemParams<Spawner, RunArgs, Metrics> {
/// 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<Job: JobTrait, Spawner> {
+1 -1
View File
@@ -708,7 +708,7 @@ impl<T: Config> Pallet<T> {
///
/// 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<Vec<(SessionIndex, CandidateHash)>, DispatchError> {
+1 -1
View File
@@ -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(
+5
View File
@@ -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