Skip to content

Commit

Permalink
Fix typos and grammatical errors (#2357)
Browse files Browse the repository at this point in the history
* typos lib.rs

* typos call_builder.rs

* typos mod.rs

* typos lib.rs
  • Loading branch information
Marcofann authored Jan 9, 2025
1 parent 7b0d3ce commit d7a66b6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/e2e/sandbox/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self::Runtime>,
) -> <<Self::Runtime as frame_system::Config>::RuntimeCall as Dispatchable>::RuntimeOrigin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion crates/ink/ir/src/ir/item/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/public/mapping/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Balance> {
Expand Down

0 comments on commit d7a66b6

Please sign in to comment.