From 80a92806b86134d56859f6684c9bc2ec041120ae Mon Sep 17 00:00:00 2001 From: drstevenbrule <110744990+drstevenbrule@users.noreply.github.com> Date: Tue, 4 Jun 2024 16:16:26 -0400 Subject: [PATCH] Fix comment typos (https://github.com/scroll-tech/zkevm-circuits/issues/1219) --- bus-mapping/src/rpc.rs | 2 +- gadgets/src/is_zero.rs | 2 +- zktrie/src/state.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bus-mapping/src/rpc.rs b/bus-mapping/src/rpc.rs index cb007633fe..e20bd2b554 100644 --- a/bus-mapping/src/rpc.rs +++ b/bus-mapping/src/rpc.rs @@ -115,7 +115,7 @@ impl GethClient

{ } /// Calls `eth_getBlockByNumber` via JSON-RPC returning a [`Block`] - /// returning all the block information including it's transaction's + /// returning all the block information including its transaction's /// details. pub async fn get_block_by_number( &self, diff --git a/gadgets/src/is_zero.rs b/gadgets/src/is_zero.rs index b69bb23f13..c88e6762f2 100644 --- a/gadgets/src/is_zero.rs +++ b/gadgets/src/is_zero.rs @@ -1,7 +1,7 @@ //! IsZero gadget works as follows: //! //! Given a `value` to be checked if it is zero: -//! - witnesses `inv0(value)`, where `inv0(x)` is 0 when `x` = 0, and +//! - witnesses: `inv0(value)`, where `inv0(x)` is 0 when `x` = 0, and //! `1/x` otherwise use eth_types::Field; diff --git a/zktrie/src/state.rs b/zktrie/src/state.rs index 551ff3dc76..f68448af60 100644 --- a/zktrie/src/state.rs +++ b/zktrie/src/state.rs @@ -69,7 +69,7 @@ impl ZktrieState { /// return true if the switch success, or false if db have not contain /// corresponding root yet /// notice the cached key would not be clean if we can successfully swith to - /// new snapshot since we consider it is not need to send more nodes data + /// new snapshot since we consider it is not needed to send more nodes data /// from storage trace for the updated leafs pub fn switch_to(&mut self, new_root: ZkTrieHash) -> bool { let test_trie = self.zk_db.borrow_mut().new_trie(&new_root);