Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Commit d43f014

Browse files
committed
chores: fix typo
1 parent 847292b commit d43f014

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

gadgets/src/permutation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! power of gamma are defined in columns to trade more columns with less degrees
44
use std::iter;
55
#[rustfmt::skip]
6-
// | q_row_non_first | q_row_enable | q_row_last | alpha | gamma | gamma power 2 | ... | row fingerprint | accmulated fingerprint |
6+
// | q_row_non_first | q_row_enable | q_row_last | alpha | gamma | gamma power 2 | ... | row fingerprint | accumulated fingerprint |
77
// |-----------------|--------------|------------|-----------|-----------|-----------------| | --------------- | ---------------------- |
88
// | 0 |1 |0 |alpha | gamma | gamma **2 | ... | F | F |
99
// | 1 |1 |0 |alpha | gamma | gamma **2 | ... | F | F |

zkevm-circuits/src/evm_circuit/execution.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ impl<F: Field> ExecutionConfig<F> {
874874

875875
// constraint global rw counter value at first/last step via chunk_ctx_table lookup
876876
// we can't do it inside constraint_builder(cb)
877-
// because lookup expression in constraint builder DONOT support apply conditional
877+
// because lookup expression in constraint builder DO NOT support apply conditional
878878
// `step_first/step_last` selector at lookup cell.
879879
if execute_state_first_step_whitelist.contains(&execution_state) {
880880
meta.lookup_any("first must lookup initial rw_counter", |meta| {

zkevm-circuits/src/state_circuit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ impl<F: Field> SubCircuit<F> for StateCircuit<F> {
540540
) = layouter.assign_region(
541541
|| "state circuit",
542542
|mut region| {
543-
// TODO optimimise RwMap::table_assignments_prepad calls from 3 times -> 1
543+
// TODO optimise RwMap::table_assignments_prepad calls from 3 times -> 1
544544
let padded_rows = config.rw_table.load_with_region(
545545
&mut region,
546546
&self.rows,

zkevm-circuits/src/table/chunk_ctx_table.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl ChunkCtxTable {
4444
pub fn construct<F: Field>(meta: &mut ConstraintSystem<F>) -> Self {
4545
let (q_enable, tag, value) = (meta.selector(), meta.fixed_column(), meta.advice_column());
4646

47-
// constraint NextChunkIndex = CurrentChunkIndex + 1
47+
// constrain NextChunkIndex = CurrentChunkIndex + 1
4848
meta.create_gate("NextChunkIndex = CurrentChunkIndex + 1", |meta| {
4949
let q_enable = meta.query_selector(q_enable);
5050
let value_cur = meta.query_advice(value, Rotation::cur());

zkevm-circuits/src/witness/chunk.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,8 @@ pub fn chunk_convert<F: Field>(
140140
if start == 0 {
141141
(None, RwMap::from(skipped.take(size).collect::<Vec<_>>()))
142142
} else {
143-
// here have `chunk.ctx.idx - 1` because each chunk first row are propagated from
144-
// prev chunk. giving idx>0 th chunk, there will be (idx-1) placeholders cant' count
145-
// in real order
143+
// here we got `chunk.ctx.idx - 1` because each chunk first row are propagated from
144+
// prev chunk. giving idx>0 th chunk, there will be (idx-1) placeholders.
146145
let mut skipped = skipped.skip(start - 1 - (chunk.ctx.idx - 1));
147146
let prev_chunk_last_by_address_rw = skipped.next();
148147
(

0 commit comments

Comments
 (0)