diff --git a/polkadot/xcm/pallet-xcm/src/lib.rs b/polkadot/xcm/pallet-xcm/src/lib.rs index 33ea8aa67e..9b6ac3b5bb 100644 --- a/polkadot/xcm/pallet-xcm/src/lib.rs +++ b/polkadot/xcm/pallet-xcm/src/lib.rs @@ -53,8 +53,8 @@ pub mod pallet { /// The type used to actually dispatch an XCM to its destination. type XcmRouter: SendXcm; - /// Required origin for executing XCM messages, includng the teleport functionality. If successful, - /// the it resolves to `MultiLocation` which exists as an interior location within this chain's XCM + /// Required origin for executing XCM messages, including the teleport functionality. If successful, + /// then it resolves to `MultiLocation` which exists as an interior location within this chain's XCM /// context. type ExecuteXcmOrigin: EnsureOrigin; @@ -300,7 +300,7 @@ impl, Body: Get> Filter for Is } } -/// `EnsureOrigin` implementation succeeding with a `MultiLocation` value to recognise and filter the +/// `EnsureOrigin` implementation succeeding with a `MultiLocation` value to recognize and filter the /// `Origin::Xcm` item. pub struct EnsureXcm(PhantomData); impl, F: Filter> EnsureOrigin for EnsureXcm diff --git a/polkadot/xcm/src/v0/mod.rs b/polkadot/xcm/src/v0/mod.rs index 76a32a7add..368353f2d8 100644 --- a/polkadot/xcm/src/v0/mod.rs +++ b/polkadot/xcm/src/v0/mod.rs @@ -229,7 +229,7 @@ pub enum Xcm { }, /// A message to notify that the other party in an open channel decided to close it. In particular, - /// `inititator` is going to close the channel opened from `sender` to the `recipient`. The close + /// `initiator` is going to close the channel opened from `sender` to the `recipient`. The close /// will be enacted at the next relay-chain session change. This message is meant to be sent by /// the relay-chain to a para. /// diff --git a/polkadot/xcm/src/v0/multi_location.rs b/polkadot/xcm/src/v0/multi_location.rs index f001f5018a..3d7fff69cd 100644 --- a/polkadot/xcm/src/v0/multi_location.rs +++ b/polkadot/xcm/src/v0/multi_location.rs @@ -553,7 +553,7 @@ impl MultiLocation { } } - /// Mutate `self` so that it is suffixed with `prefix`. The correct normalised form is returned, removing any + /// Mutate `self` so that it is suffixed with `prefix`. The correct normalized form is returned, removing any /// internal `Parent`s. /// /// Does not modify `self` and returns `Err` with `prefix` in case of overflow. @@ -570,7 +570,7 @@ impl MultiLocation { } } - /// Mutate `self` so that it is prefixed with `prefix`. The correct normalised form is returned, removing any + /// Mutate `self` so that it is prefixed with `prefix`. The correct normalized form is returned, removing any /// internal `Parent`s. /// /// Does not modify `self` and returns `Err` with `prefix` in case of overflow. diff --git a/polkadot/xcm/src/v0/traits.rs b/polkadot/xcm/src/v0/traits.rs index 1202e0f4b9..b65cd7e37a 100644 --- a/polkadot/xcm/src/v0/traits.rs +++ b/polkadot/xcm/src/v0/traits.rs @@ -34,10 +34,10 @@ pub enum Error { UntrustedReserveLocation, UntrustedTeleportLocation, DestinationBufferOverflow, - /// The message and destination was recognised as being reachable but the operation could not be completed. + /// The message and destination was recognized as being reachable but the operation could not be completed. /// A human-readable explanation of the specific issue is provided. SendFailed(#[codec(skip)] &'static str), - /// The message and destination combination was not recognised as being reachable. + /// The message and destination combination was not recognized as being reachable. CannotReachDestination(MultiLocation, Xcm<()>), MultiLocationFull, FailedToDecode, @@ -92,7 +92,7 @@ pub type Result = result::Result<(), Error>; /// Local weight type; execution time in picoseconds. pub type Weight = u64; -/// Outcome of an XCM excution. +/// Outcome of an XCM execution. #[derive(Clone, Encode, Decode, Eq, PartialEq, Debug)] pub enum Outcome { /// Execution completed successfully; given weight was used. @@ -162,7 +162,7 @@ impl ExecuteXcm for () { /// Utility for sending an XCM message. /// -/// These can be amalgamted in tuples to form sophisticated routing systems. +/// These can be amalgamated in tuples to form sophisticated routing systems. pub trait SendXcm { /// Send an XCM `message` to a given `destination`. ///