Skip to content

Commit

Permalink
chore: remove unnecessary words (paritytech#4796)
Browse files Browse the repository at this point in the history
remove unnecessary words in comments.
  • Loading branch information
hattizai authored Jun 17, 2024
1 parent 2e39e05 commit fed508f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docs/sdk/src/guides/your_first_pallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ pub mod pallet {
#[test]
fn transfer_works() {
StateBuilder::default().build_and_execute(|| {
// given the the initial state, when:
// given the initial state, when:
assert_ok!(Pallet::<Runtime>::transfer(RuntimeOrigin::signed(ALICE), BOB, 50));

// then:
Expand All @@ -648,7 +648,7 @@ pub mod pallet {
#[test]
fn transfer_from_non_existent_fails() {
StateBuilder::default().build_and_execute(|| {
// given the the initial state, when:
// given the initial state, when:
assert_err!(
Pallet::<Runtime>::transfer(RuntimeOrigin::signed(CHARLIE), ALICE, 10),
"NonExistentAccount"
Expand Down Expand Up @@ -769,7 +769,7 @@ pub mod pallet_v2 {
// the final assertion.
System::set_block_number(ALICE);

// given the the initial state, when:
// given the initial state, when:
assert_ok!(Pallet::<Runtime>::transfer(RuntimeOrigin::signed(ALICE), BOB, 50));

// then:
Expand Down
10 changes: 5 additions & 5 deletions substrate/primitives/trie/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,11 @@ pub type MemoryDB<H> = memory_db::MemoryDB<H, memory_db::HashKey<H>, trie_db::DB
/// Reexport from `hash_db`, with genericity set for `Hasher` trait.
pub type GenericMemoryDB<H, KF> = memory_db::MemoryDB<H, KF, trie_db::DBValue>;

/// Persistent trie database read-access interface for the a given hasher.
/// Persistent trie database read-access interface for a given hasher.
pub type TrieDB<'a, 'cache, L> = trie_db::TrieDB<'a, 'cache, L>;
/// Builder for creating a [`TrieDB`].
pub type TrieDBBuilder<'a, 'cache, L> = trie_db::TrieDBBuilder<'a, 'cache, L>;
/// Persistent trie database write-access interface for the a given hasher.
/// Persistent trie database write-access interface for a given hasher.
pub type TrieDBMut<'a, L> = trie_db::TrieDBMut<'a, L>;
/// Builder for creating a [`TrieDBMut`].
pub type TrieDBMutBuilder<'a, L> = trie_db::TrieDBMutBuilder<'a, L>;
Expand All @@ -212,17 +212,17 @@ pub type TrieHash<L> = <<L as TrieLayout>::Hash as Hasher>::Out;
pub mod trie_types {
use super::*;

/// Persistent trie database read-access interface for the a given hasher.
/// Persistent trie database read-access interface for a given hasher.
///
/// Read only V1 and V0 are compatible, thus we always use V1.
pub type TrieDB<'a, 'cache, H> = super::TrieDB<'a, 'cache, LayoutV1<H>>;
/// Builder for creating a [`TrieDB`].
pub type TrieDBBuilder<'a, 'cache, H> = super::TrieDBBuilder<'a, 'cache, LayoutV1<H>>;
/// Persistent trie database write-access interface for the a given hasher.
/// Persistent trie database write-access interface for a given hasher.
pub type TrieDBMutV0<'a, H> = super::TrieDBMut<'a, LayoutV0<H>>;
/// Builder for creating a [`TrieDBMutV0`].
pub type TrieDBMutBuilderV0<'a, H> = super::TrieDBMutBuilder<'a, LayoutV0<H>>;
/// Persistent trie database write-access interface for the a given hasher.
/// Persistent trie database write-access interface for a given hasher.
pub type TrieDBMutV1<'a, H> = super::TrieDBMut<'a, LayoutV1<H>>;
/// Builder for creating a [`TrieDBMutV1`].
pub type TrieDBMutBuilderV1<'a, H> = super::TrieDBMutBuilder<'a, LayoutV1<H>>;
Expand Down

0 comments on commit fed508f

Please sign in to comment.