From 6fa81153bfb2f2a22733197b80beb703a256da1c Mon Sep 17 00:00:00 2001 From: nk_ysg Date: Sat, 27 Jul 2024 17:23:06 +0800 Subject: [PATCH] chore: fix typos (#9851) --- bin/reth/src/commands/debug_cmd/merkle.rs | 2 +- crates/stages/api/src/stage.rs | 2 +- crates/storage/db-api/src/models/storage_sharded_key.rs | 2 +- examples/db-access/src/main.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/reth/src/commands/debug_cmd/merkle.rs b/bin/reth/src/commands/debug_cmd/merkle.rs index f95c74d9cc..6d8667f82f 100644 --- a/bin/reth/src/commands/debug_cmd/merkle.rs +++ b/bin/reth/src/commands/debug_cmd/merkle.rs @@ -247,7 +247,7 @@ impl Command { } } - // Stoarge trie + // Storage trie let mut first_mismatched_storage = None; let mut incremental_storage_trie_iter = incremental_storage_trie.into_iter().peekable(); let mut clean_storage_trie_iter = clean_storage_trie.into_iter().peekable(); diff --git a/crates/stages/api/src/stage.rs b/crates/stages/api/src/stage.rs index b8178df46d..73d69b1817 100644 --- a/crates/stages/api/src/stage.rs +++ b/crates/stages/api/src/stage.rs @@ -100,7 +100,7 @@ impl ExecInput { let (end_block, is_final_range, next_tx_num) = if all_tx_cnt <= tx_threshold { (target_block, true, target_block_body.next_tx_num()) } else { - // get tx block number. next_tx_num in this case will be less thean all_tx_cnt. + // get tx block number. next_tx_num in this case will be less than all_tx_cnt. // So we are sure that transaction must exist. let end_block_number = provider .transaction_block(first_tx_num + tx_threshold)? diff --git a/crates/storage/db-api/src/models/storage_sharded_key.rs b/crates/storage/db-api/src/models/storage_sharded_key.rs index f76f0468a9..04243808f7 100644 --- a/crates/storage/db-api/src/models/storage_sharded_key.rs +++ b/crates/storage/db-api/src/models/storage_sharded_key.rs @@ -15,7 +15,7 @@ pub const NUM_OF_INDICES_IN_SHARD: usize = 2_000; /// Sometimes data can be too big to be saved for a single key. This helps out by dividing the data /// into different shards. Example: /// -/// `Address | Storagekey | 200` -> data is from transition 0 to 200. +/// `Address | StorageKey | 200` -> data is from transition 0 to 200. /// /// `Address | StorageKey | 300` -> data is from transition 201 to 300. #[derive( diff --git a/examples/db-access/src/main.rs b/examples/db-access/src/main.rs index 4c36c33481..0a83688013 100644 --- a/examples/db-access/src/main.rs +++ b/examples/db-access/src/main.rs @@ -188,7 +188,7 @@ fn receipts_provider_example