From de5027c13f3f75f188b979db716b4c17d4623cce Mon Sep 17 00:00:00 2001 From: Snoppy Date: Wed, 3 Apr 2024 13:49:23 +0800 Subject: [PATCH] chore: fix typos (#4020) --- commons/forkable-jellyfish-merkle/src/node_type/mod.rs | 2 +- commons/metrics/src/op_counters.rs | 2 +- vm/parallel-executor/src/scheduler.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commons/forkable-jellyfish-merkle/src/node_type/mod.rs b/commons/forkable-jellyfish-merkle/src/node_type/mod.rs index e96cfecfb1..72b8d89b69 100644 --- a/commons/forkable-jellyfish-merkle/src/node_type/mod.rs +++ b/commons/forkable-jellyfish-merkle/src/node_type/mod.rs @@ -10,7 +10,7 @@ //! and [`LeafNode`] as building blocks of a 256-bit //! [`JellyfishMerkleTree`](crate::JellyfishMerkleTree). [`InternalNode`] represents a 4-level //! binary tree to optimize for IOPS: it compresses a tree with 31 nodes into one node with 16 -//! chidren at the lowest level. [`LeafNode`] stores the full key and the account blob data +//! children at the lowest level. [`LeafNode`] stores the full key and the account blob data //! associated. #![allow(clippy::unit_arg)] diff --git a/commons/metrics/src/op_counters.rs b/commons/metrics/src/op_counters.rs index c148e4e31f..b6fa30f1dc 100644 --- a/commons/metrics/src/op_counters.rs +++ b/commons/metrics/src/op_counters.rs @@ -18,7 +18,7 @@ use std::time::Duration; /// A small wrapper around Histogram to handle the special case /// of duration buckets. -/// This Histogram will handle the correct granularty for logging +/// This Histogram will handle the correct granularity for logging /// time duration in a way that fits the used buckets. pub struct DurationHistogram { histogram: Histogram, diff --git a/vm/parallel-executor/src/scheduler.rs b/vm/parallel-executor/src/scheduler.rs index ca4e2e8ea3..4c7abe7d29 100644 --- a/vm/parallel-executor/src/scheduler.rs +++ b/vm/parallel-executor/src/scheduler.rs @@ -385,7 +385,7 @@ impl Scheduler { } /// Grab an index to try and validate next (by fetch-and-incrementing validation_idx). - /// - If the index is out of bounds, return None (and invoke a check of whethre + /// - If the index is out of bounds, return None (and invoke a check of whether /// all txns can be committed). /// - If the transaction is ready for validation (EXECUTED state), return the version /// to the caller together with a guard to be used for the corresponding ValidationTask.