diff --git a/crates/cli/src/names.rs b/crates/cli/src/names.rs index f170f9b4..085c9243 100644 --- a/crates/cli/src/names.rs +++ b/crates/cli/src/names.rs @@ -17,7 +17,7 @@ pub(crate) fn name_of_circuit_data(name: &str, is_last_circuit: bool) -> String } } -// FIXME: adapt batcher crate, however the crate should provice this function +// FIXME: adapt batcher crate, however the crate should provide this function #[inline(always)] pub(crate) fn name_of_loadinfo(name: &str) -> String { format!("{}.loadinfo.json", name) diff --git a/crates/zkwasm/src/circuits/etable/assign.rs b/crates/zkwasm/src/circuits/etable/assign.rs index cc0ee468..7662d324 100644 --- a/crates/zkwasm/src/circuits/etable/assign.rs +++ b/crates/zkwasm/src/circuits/etable/assign.rs @@ -54,7 +54,7 @@ use crate::circuits::utils::Context; * | -------- | ---- + ------ | ---------- + ---- | -------| * | event | 1 | 1 | | | | permutation with pre image table * | table | 1 | 1 | | | | - * | entires | 1 | 1 | | | | + * | entries | 1 | 1 | | | | * | -------- | ---- | ------ | ---------- | ---- | ------ | * | padding | 1 | 0 | | | | padding rows are used to copy termination status * | | 1 | 0 | | | | to permutation row diff --git a/crates/zkwasm/src/runtime/host/external_circuit_plugin.rs b/crates/zkwasm/src/runtime/host/external_circuit_plugin.rs index d168378d..3895e44a 100644 --- a/crates/zkwasm/src/runtime/host/external_circuit_plugin.rs +++ b/crates/zkwasm/src/runtime/host/external_circuit_plugin.rs @@ -46,7 +46,7 @@ impl ExternalCircuitEnv { }) } - /// Register a foreign function to a registed plugin + /// Register a foreign function to a registered plugin pub fn register_function( &mut self, name: &str, diff --git a/crates/zkwasm/src/runtime/monitor/plugins/table/frame_table_builder.rs b/crates/zkwasm/src/runtime/monitor/plugins/table/frame_table_builder.rs index 9661463b..9a37dd3a 100644 --- a/crates/zkwasm/src/runtime/monitor/plugins/table/frame_table_builder.rs +++ b/crates/zkwasm/src/runtime/monitor/plugins/table/frame_table_builder.rs @@ -109,7 +109,7 @@ impl FrameTableBuilder { * * start -> zkmain * If we pad a slice, the inherited frame entries of the trivial slice should have two entries with ordering, * but if first non-trivial slice terminating, 'current_returned' with 'inherited = true' will have - * two entires with reverse ordering, since frame it's a stack(pop from current_unreturned then push into current_returned). + * two entries with reverse ordering, since frame it's a stack(pop from current_unreturned then push into current_returned). * This crashes commitment checking between trivial slice's post image table and first non-trivial slice's pre image table. */ let inherited = self diff --git a/crates/zkwasm/src/runtime/monitor/plugins/table/transaction/v2.rs b/crates/zkwasm/src/runtime/monitor/plugins/table/transaction/v2.rs index 3defe8fe..07e9d0e6 100644 --- a/crates/zkwasm/src/runtime/monitor/plugins/table/transaction/v2.rs +++ b/crates/zkwasm/src/runtime/monitor/plugins/table/transaction/v2.rs @@ -68,7 +68,7 @@ impl Checkpoint { // return value: // Ordering::Greater: at least one of transaction is overflow // Ordering::Equal: all transactions are full - // Ordering::Less : no transaction overflow and at least one of transacion is not full + // Ordering::Less : no transaction overflow and at least one of transaction is not full fn transactions_group_number_ordering( &self, applied_transactions_group_number: &HashMap, @@ -138,7 +138,7 @@ impl Checkpoints { } fn start(&mut self, tx: TransactionId, offset: usize) { - // end the lastest checkpoint + // end the latest checkpoint if self.transactions.is_empty() { if let Some(checkpoint) = self.checkpoints.last_mut() { checkpoint.range.end = Some(offset);