Skip to content

Commit fed508f

Browse files
authored
chore: remove unnecessary words (paritytech#4796)
remove unnecessary words in comments.
1 parent 2e39e05 commit fed508f

File tree

2 files changed

+8
-8
lines changed
  • docs/sdk/src/guides/your_first_pallet
  • substrate/primitives/trie/src

2 files changed

+8
-8
lines changed

docs/sdk/src/guides/your_first_pallet/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ pub mod pallet {
626626
#[test]
627627
fn transfer_works() {
628628
StateBuilder::default().build_and_execute(|| {
629-
// given the the initial state, when:
629+
// given the initial state, when:
630630
assert_ok!(Pallet::<Runtime>::transfer(RuntimeOrigin::signed(ALICE), BOB, 50));
631631

632632
// then:
@@ -648,7 +648,7 @@ pub mod pallet {
648648
#[test]
649649
fn transfer_from_non_existent_fails() {
650650
StateBuilder::default().build_and_execute(|| {
651-
// given the the initial state, when:
651+
// given the initial state, when:
652652
assert_err!(
653653
Pallet::<Runtime>::transfer(RuntimeOrigin::signed(CHARLIE), ALICE, 10),
654654
"NonExistentAccount"
@@ -769,7 +769,7 @@ pub mod pallet_v2 {
769769
// the final assertion.
770770
System::set_block_number(ALICE);
771771

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

775775
// then:

substrate/primitives/trie/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,11 @@ pub type MemoryDB<H> = memory_db::MemoryDB<H, memory_db::HashKey<H>, trie_db::DB
195195
/// Reexport from `hash_db`, with genericity set for `Hasher` trait.
196196
pub type GenericMemoryDB<H, KF> = memory_db::MemoryDB<H, KF, trie_db::DBValue>;
197197

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

215-
/// Persistent trie database read-access interface for the a given hasher.
215+
/// Persistent trie database read-access interface for a given hasher.
216216
///
217217
/// Read only V1 and V0 are compatible, thus we always use V1.
218218
pub type TrieDB<'a, 'cache, H> = super::TrieDB<'a, 'cache, LayoutV1<H>>;
219219
/// Builder for creating a [`TrieDB`].
220220
pub type TrieDBBuilder<'a, 'cache, H> = super::TrieDBBuilder<'a, 'cache, LayoutV1<H>>;
221-
/// Persistent trie database write-access interface for the a given hasher.
221+
/// Persistent trie database write-access interface for a given hasher.
222222
pub type TrieDBMutV0<'a, H> = super::TrieDBMut<'a, LayoutV0<H>>;
223223
/// Builder for creating a [`TrieDBMutV0`].
224224
pub type TrieDBMutBuilderV0<'a, H> = super::TrieDBMutBuilder<'a, LayoutV0<H>>;
225-
/// Persistent trie database write-access interface for the a given hasher.
225+
/// Persistent trie database write-access interface for a given hasher.
226226
pub type TrieDBMutV1<'a, H> = super::TrieDBMut<'a, LayoutV1<H>>;
227227
/// Builder for creating a [`TrieDBMutV1`].
228228
pub type TrieDBMutBuilderV1<'a, H> = super::TrieDBMutBuilder<'a, LayoutV1<H>>;

0 commit comments

Comments
 (0)