Skip to content

Commit

Permalink
Fix comment typos (scroll-tech#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
drstevenbrule authored Jun 4, 2024
1 parent 2456ce1 commit 80a9280
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bus-mapping/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl<P: JsonRpcClient> GethClient<P> {
}

/// 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,
Expand Down
2 changes: 1 addition & 1 deletion gadgets/src/is_zero.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion zktrie/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 80a9280

Please sign in to comment.