chore: fix some typos (#4253)

This commit is contained in:
sfuhfds
2024-04-23 18:53:50 +08:00
committed by GitHub
parent f7c1e0cf10
commit 5f2e66f5d0
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -866,7 +866,7 @@ mod tests {
use sp_core::H256;
use std::{cell::RefCell, collections::BTreeMap, sync::Arc};
// The testing primitives are very useful for avoiding having to work with signatures
// or public keys. `u64` is used as the `AccountId` and no `Signature`s are requried.
// or public keys. `u64` is used as the `AccountId` and no `Signature`s are required.
use crate::{
crowdloan,
mock::TestRegistrar,
@@ -412,7 +412,7 @@ pub mod pallet {
/// validators have reported on the validity of the code, the code will either be enacted
/// or the upgrade will be rejected. If the code will be enacted, the current code of the
/// parachain will be overwritten directly. This means that any PoV will be checked by this
/// new code. The parachain itself will not be informed explictely that the validation code
/// new code. The parachain itself will not be informed explicitly that the validation code
/// has changed.
///
/// Can be called by Root, the parachain, or the parachain manager if the parachain is
@@ -245,7 +245,7 @@ pub enum AggregateMessageOrigin {
/// Identifies a UMP queue inside the `MessageQueue` pallet.
///
/// It is written in verbose form since future variants like `Here` and `Bridged` are already
/// forseeable.
/// foreseeable.
#[derive(Encode, Decode, Clone, MaxEncodedLen, Eq, PartialEq, RuntimeDebug, TypeInfo)]
pub enum UmpQueueId {
/// The message originated from this parachain.
+1 -1
View File
@@ -641,7 +641,7 @@ pub mod pallet {
///
/// This is only used at genesis or by root.
///
/// TODO: Remove once coretime is the standard accross all chains.
/// TODO: Remove once coretime is the standard across all chains.
type AssignCoretime: AssignCoretime;
}
@@ -1099,7 +1099,7 @@ fn limit_and_sanitize_disputes<
}
// Helper function for filtering candidates which don't pass the given predicate. When/if the first
// candidate which failes the predicate is found, all the other candidates that follow are dropped.
// candidate which failed the predicate is found, all the other candidates that follow are dropped.
fn retain_candidates<
T: inclusion::Config + paras::Config + inclusion::Config,
F: FnMut(ParaId, &mut C) -> bool,