From d7a66b6e87f03b477ff5f746ffec9bfb0e6da793 Mon Sep 17 00:00:00 2001 From: Marco Date: Thu, 9 Jan 2025 18:20:22 +0200 Subject: [PATCH] Fix typos and grammatical errors (#2357) * typos lib.rs * typos call_builder.rs * typos mod.rs * typos lib.rs --- crates/e2e/sandbox/src/lib.rs | 2 +- .../ink/codegen/src/generator/as_dependency/call_builder.rs | 4 ++-- crates/ink/ir/src/ir/item/mod.rs | 2 +- integration-tests/public/mapping/lib.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/e2e/sandbox/src/lib.rs b/crates/e2e/sandbox/src/lib.rs index d4a46c4e1d9..01ba7b48b79 100644 --- a/crates/e2e/sandbox/src/lib.rs +++ b/crates/e2e/sandbox/src/lib.rs @@ -127,7 +127,7 @@ pub trait Sandbox { /// Metadata of the runtime. fn get_metadata() -> RuntimeMetadataPrefixed; - /// Convert an account to an call origin. + /// Convert an account to a call origin. fn convert_account_to_origin( account: AccountIdFor, ) -> <::RuntimeCall as Dispatchable>::RuntimeOrigin; diff --git a/crates/ink/codegen/src/generator/as_dependency/call_builder.rs b/crates/ink/codegen/src/generator/as_dependency/call_builder.rs index 56475a391f2..bccf0f15078 100644 --- a/crates/ink/codegen/src/generator/as_dependency/call_builder.rs +++ b/crates/ink/codegen/src/generator/as_dependency/call_builder.rs @@ -213,8 +213,8 @@ impl CallBuilder<'_> { fn forward_mut(&mut self) -> &mut Self::Forwarder { // SAFETY: // - // We convert from a exclusive reference to a type that thinly wraps - // only an `AccountId` to a exclusive reference to another type of which + // We convert from an exclusive reference to a type that thinly wraps + // only an `AccountId` to an exclusive reference to another type of which // we know that it also thinly wraps an `AccountId`. // Furthermore both types use `repr(transparent)`. unsafe { diff --git a/crates/ink/ir/src/ir/item/mod.rs b/crates/ink/ir/src/ir/item/mod.rs index f674b35a8bb..f58fe913292 100644 --- a/crates/ink/ir/src/ir/item/mod.rs +++ b/crates/ink/ir/src/ir/item/mod.rs @@ -118,7 +118,7 @@ impl Item { self.map_ink_item().is_some() } - /// Returns `true` if `self` is an normal Rust item. + /// Returns `true` if `self` is a normal Rust item. pub fn is_rust_item(&self) -> bool { self.map_rust_item().is_some() } diff --git a/integration-tests/public/mapping/lib.rs b/integration-tests/public/mapping/lib.rs index 47caf9b8b2b..3a2e221c188 100755 --- a/integration-tests/public/mapping/lib.rs +++ b/integration-tests/public/mapping/lib.rs @@ -41,7 +41,7 @@ mod mapping { /// Demonstrates the usage of `Mapping::get()`. /// - /// Returns the balance of a account, or `None` if the account is not in the + /// Returns the balance of an account, or `None` if the account is not in the /// `Mapping`. #[ink(message)] pub fn get_balance(&self) -> Option {