From 8f4485b0893a6ded9c20c3de41aee55eae1e404b Mon Sep 17 00:00:00 2001 From: Snoppy Date: Sun, 14 Apr 2024 10:02:51 +0800 Subject: [PATCH] chore: fix typos (#2737) --- modules/honzon/src/lib.rs | 8 ++++---- modules/xcm-interface/src/lib.rs | 2 +- runtime/mandala/src/lib.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/honzon/src/lib.rs b/modules/honzon/src/lib.rs index b6692ec837..c80296ea7a 100644 --- a/modules/honzon/src/lib.rs +++ b/modules/honzon/src/lib.rs @@ -77,7 +77,7 @@ pub mod module { #[pallet::error] pub enum Error { - // No permisson + // No permission NoPermission, // The system has been shutdown AlreadyShutdown, @@ -342,9 +342,9 @@ pub mod module { /// Transfers debit between two CDPs /// - /// - `from_currency`: Currency id that debit is transfered from - /// - `to_currency`: Currency id that debit is transfered to - /// - `debit_transfer`: Debit transfered across two CDPs + /// - `from_currency`: Currency id that debit is transferred from + /// - `to_currency`: Currency id that debit is transferred to + /// - `debit_transfer`: Debit transferred across two CDPs #[pallet::call_index(9)] #[pallet::weight(::WeightInfo::transfer_debit())] pub fn transfer_debit( diff --git a/modules/xcm-interface/src/lib.rs b/modules/xcm-interface/src/lib.rs index 84b1eedb8f..95a618d170 100644 --- a/modules/xcm-interface/src/lib.rs +++ b/modules/xcm-interface/src/lib.rs @@ -182,7 +182,7 @@ pub mod module { // self location is relative to self let loc = T::SelfLocation::get(); - // we need to reanchor it to the parent becuase the call is dispatched on parent + // we need to reanchor it to the parent because the call is dispatched on parent let loc = loc .reanchored(&MultiLocation::new(1, Here), Here) .map_err(|_| Error::::XcmFailed)?; diff --git a/runtime/mandala/src/lib.rs b/runtime/mandala/src/lib.rs index adf81885f7..3e53d48169 100644 --- a/runtime/mandala/src/lib.rs +++ b/runtime/mandala/src/lib.rs @@ -142,7 +142,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { state_version: 0, }; -/// The version infromation used to identify this runtime when compiled +/// The version information used to identify this runtime when compiled /// natively. #[cfg(feature = "std")] pub fn native_version() -> NativeVersion {