diff --git a/docs/sdk/src/reference_docs/frame_benchmarking_weight.rs b/docs/sdk/src/reference_docs/frame_benchmarking_weight.rs index 68d7d31f67f3..98192bfd2a90 100644 --- a/docs/sdk/src/reference_docs/frame_benchmarking_weight.rs +++ b/docs/sdk/src/reference_docs/frame_benchmarking_weight.rs @@ -96,7 +96,7 @@ //! Two ways exist to run the benchmarks of a runtime. //! //! 1. The old school way: Most Polkadot-SDK based nodes (such as the ones integrated in -//! [`templates`]) have an a `benchmark` subcommand integrated into themselves. +//! [`templates`]) have a `benchmark` subcommand integrated into themselves. //! 2. The more [`crate::reference_docs::omni_node`] compatible way of running the benchmarks would //! be using [`frame-omni-bencher`] CLI, which only relies on a runtime. //! diff --git a/substrate/frame/balances/src/impl_currency.rs b/substrate/frame/balances/src/impl_currency.rs index 23feb46b72ca..bc7e77c191db 100644 --- a/substrate/frame/balances/src/impl_currency.rs +++ b/substrate/frame/balances/src/impl_currency.rs @@ -632,7 +632,7 @@ where /// /// This is `Polite` and thus will not repatriate any funds which would lead the total balance /// to be less than the frozen amount. Returns `Ok` with the actual amount of funds moved, - /// which may be less than `value` since the operation is done an a `BestEffort` basis. + /// which may be less than `value` since the operation is done on a `BestEffort` basis. fn repatriate_reserved( slashed: &T::AccountId, beneficiary: &T::AccountId, diff --git a/substrate/frame/benchmarking/src/v1.rs b/substrate/frame/benchmarking/src/v1.rs index 64f93b22cf1b..99aad0301c12 100644 --- a/substrate/frame/benchmarking/src/v1.rs +++ b/substrate/frame/benchmarking/src/v1.rs @@ -1894,7 +1894,7 @@ macro_rules! add_benchmark { /// This macro allows users to easily generate a list of benchmarks for the pallets configured /// in the runtime. /// -/// To use this macro, first create a an object to store the list: +/// To use this macro, first create an object to store the list: /// /// ```ignore /// let mut list = Vec::::new(); diff --git a/substrate/frame/elections-phragmen/src/lib.rs b/substrate/frame/elections-phragmen/src/lib.rs index effbb6e786c0..fa1c48ee65ed 100644 --- a/substrate/frame/elections-phragmen/src/lib.rs +++ b/substrate/frame/elections-phragmen/src/lib.rs @@ -616,7 +616,7 @@ pub mod pallet { #[pallet::generate_deposit(pub(super) fn deposit_event)] pub enum Event { /// A new term with new_members. This indicates that enough candidates existed to run - /// the election, not that enough have has been elected. The inner value must be examined + /// the election, not that enough have been elected. The inner value must be examined /// for this purpose. A `NewTerm(\[\])` indicates that some candidates got their bond /// slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to /// begin with. diff --git a/substrate/frame/recovery/src/lib.rs b/substrate/frame/recovery/src/lib.rs index 4de1919cdc33..5a97b03cd239 100644 --- a/substrate/frame/recovery/src/lib.rs +++ b/substrate/frame/recovery/src/lib.rs @@ -403,7 +403,7 @@ pub mod pallet { .map_err(|e| e.error) } - /// Allow ROOT to bypass the recovery process and set an a rescuer account + /// Allow ROOT to bypass the recovery process and set a rescuer account /// for a lost account directly. /// /// The dispatch origin for this call must be _ROOT_. diff --git a/substrate/frame/support/src/storage/child.rs b/substrate/frame/support/src/storage/child.rs index 5ebba2693658..7109e9213b0f 100644 --- a/substrate/frame/support/src/storage/child.rs +++ b/substrate/frame/support/src/storage/child.rs @@ -163,7 +163,7 @@ pub fn kill_storage(child_info: &ChildInfo, limit: Option) -> KillStorageRe /// operating on the same prefix should pass `Some` and this value should be equal to the /// previous call result's `maybe_cursor` field. The only exception to this is when you can /// guarantee that the subsequent call is in a new block; in this case the previous call's result -/// cursor need not be passed in an a `None` may be passed instead. This exception may be useful +/// cursor need not be passed in and a `None` may be passed instead. This exception may be useful /// then making this call solely from a block-hook such as `on_initialize`. /// Returns [`MultiRemovalResults`] to inform about the result. Once the resultant `maybe_cursor` diff --git a/substrate/frame/support/src/storage/unhashed.rs b/substrate/frame/support/src/storage/unhashed.rs index 7f9bc93d7d81..495c50caa2d6 100644 --- a/substrate/frame/support/src/storage/unhashed.rs +++ b/substrate/frame/support/src/storage/unhashed.rs @@ -124,7 +124,7 @@ pub fn kill_prefix(prefix: &[u8], limit: Option) -> sp_io::KillStorageResul /// operating on the same prefix should pass `Some` and this value should be equal to the /// previous call result's `maybe_cursor` field. The only exception to this is when you can /// guarantee that the subsequent call is in a new block; in this case the previous call's result -/// cursor need not be passed in an a `None` may be passed instead. This exception may be useful +/// cursor need not be passed in and a `None` may be passed instead. This exception may be useful /// then making this call solely from a block-hook such as `on_initialize`. /// /// Returns [`MultiRemovalResults`](sp_io::MultiRemovalResults) to inform about the result. Once the diff --git a/substrate/frame/support/src/traits/preimages.rs b/substrate/frame/support/src/traits/preimages.rs index 80020d8d0080..6e46a7489654 100644 --- a/substrate/frame/support/src/traits/preimages.rs +++ b/substrate/frame/support/src/traits/preimages.rs @@ -38,7 +38,7 @@ pub enum Bounded { /// for transitioning from legacy state. In the future we will make this a pure /// `Dummy` item storing only the final `dummy` field. Legacy { hash: H::Output, dummy: core::marker::PhantomData }, - /// A an bounded `Call`. Its encoding must be at most 128 bytes. + /// A bounded `Call`. Its encoding must be at most 128 bytes. Inline(BoundedInline), /// A hash of the call together with an upper limit for its size.` Lookup { hash: H::Output, len: u32 },