Skip to content

Commit bd4471b

Browse files
authored
Fix some typos (paritytech#4018)
Signed-off-by: hongkuang <liurenhong@outlook.com>
1 parent 9940038 commit bd4471b

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

cumulus/pallets/collator-selection/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ pub mod pallet {
984984
}
985985
}
986986

987-
/// [`TypedGet`] implementaion to get the AccountId of the StakingPot.
987+
/// [`TypedGet`] implementation to get the AccountId of the StakingPot.
988988
pub struct StakingPotAccountId<R>(PhantomData<R>);
989989
impl<R> TypedGet for StakingPotAccountId<R>
990990
where

cumulus/parachains/runtimes/bridge-hubs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ mkdir -p ~/local_bridge_testing/logs
3838
---
3939
# 1. Install zombienet
4040
Go to: https://github.com/paritytech/zombienet/releases
41-
Copy the apropriate binary (zombienet-linux) from the latest release to ~/local_bridge_testing/bin
41+
Copy the appropriate binary (zombienet-linux) from the latest release to ~/local_bridge_testing/bin
4242
4343
4444
---

cumulus/parachains/runtimes/testing/rococo-parachain/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ pub fn native_version() -> NativeVersion {
138138
NativeVersion { runtime_version: VERSION, can_author_with: Default::default() }
139139
}
140140

141-
/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers.
141+
/// We assume that ~10% of the block weight is consumed by `on_initialize` handlers.
142142
/// This is used to limit the maximal weight of a single extrinsic.
143143
const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10);
144144
/// We allow `Normal` extrinsics to fill up the block up to 75%, the rest can be used

docs/sdk/src/reference_docs/frame_tokens.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
//! On completion of reading this doc, you should have a good understanding of:
2424
//! - The distinction between token traits and trait implementations in FRAME, and why this
2525
//! distinction is helpful
26-
//! - Token-related traits avaliable in FRAME
26+
//! - Token-related traits available in FRAME
2727
//! - Token-related trait implementations in FRAME
2828
//! - How to choose the right trait or trait implementation for your use case
2929
//! - Where to go next
@@ -38,7 +38,7 @@
3838
//! [tightly coupling](crate::reference_docs::frame_pallet_coupling#tight-coupling-pallets) your
3939
//! custom pallet to [`pallet_balances`].
4040
//!
41-
//! However, to keep pallets flexible and modular, it is often prefered to
41+
//! However, to keep pallets flexible and modular, it is often preferred to
4242
//! [loosely couple](crate::reference_docs::frame_pallet_coupling#loosely--coupling-pallets).
4343
//!
4444
//! To achieve loose coupling,

polkadot/node/core/approval-voting/src/approval_checking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ mod tests {
11481148
}
11491149
.into();
11501150

1151-
// Populate the requested tranches. The assignemnts aren't inspected in
1151+
// Populate the requested tranches. The assignments aren't inspected in
11521152
// this test.
11531153
for &t in &test_tranche {
11541154
approval_entry.import_assignment(t, ValidatorIndex(0), 0)

substrate/frame/support/src/traits/tokens/fungible/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//! Also see the [`frame_tokens`] reference docs for more information about the place of
2121
//! `fungible` traits in Substrate.
2222
//!
23-
//! # Avaliable Traits
23+
//! # Available Traits
2424
//! - [`Inspect`]: Regular balance inspector functions.
2525
//! - [`Unbalanced`]: Low-level balance mutating functions. Does not guarantee proper book-keeping
2626
//! and so should not be called into directly from application code. Other traits depend on this

substrate/frame/treasury/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ impl<T: Config<I>, I: 'static> OnUnbalanced<NegativeImbalanceOf<T, I>> for Palle
11231123
}
11241124
}
11251125

1126-
/// TypedGet implementaion to get the AccountId of the Treasury.
1126+
/// TypedGet implementation to get the AccountId of the Treasury.
11271127
pub struct TreasuryAccountId<R>(PhantomData<R>);
11281128
impl<R> sp_runtime::traits::TypedGet for TreasuryAccountId<R>
11291129
where

0 commit comments

Comments
 (0)