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

Commit 4bdc733

Browse files
authored
Fix typos (#1780)
1 parent 8d230b3 commit 4bdc733

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+95
-95
lines changed

bin/mpt-test/src/circuit/state_update.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ pub struct StateUpdateCircuitConfig<F: Field> {
5757
/// The MPT table, where the state updates are stored
5858
pub pi_mpt: MptTable,
5959

60-
/// Intance column, used to check public inputs
60+
/// Instance column, used to check public inputs
6161
pub instance: Column<Instance>,
6262

6363
/// ONE if the first row, ZERO otherwise
6464
pub is_first: Column<Fixed>,
6565

66-
/// ONE if row is paddding, ZERO otherwise
66+
/// ONE if row is padding, ZERO otherwise
6767
pub is_padding: IsZeroConfig<F>,
6868

6969
/// ONE is the last used row, ZERO otherwise
@@ -465,7 +465,7 @@ impl<F: Field> Circuit<F> for StateUpdateCircuit<F> {
465465
).unwrap()
466466
);
467467

468-
// at beggining, set the old root and number of proofs
468+
// at beginning, set the old root and number of proofs
469469

470470
if offset == 0 {
471471
pi.push(Some(old_root_lo));

bus-mapping/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ On that way, we would get something like this for the Memory ops:
158158
| `key` | `val` | `rw` | `gc` | Note |
159159
|:------:| ------------- | ------- | ---- | ---------------------------------------- |
160160
| `0x40` | `0` | `Write` | | Init |
161-
| `0x40` | `0x80` | `Write` | 0 | Assume written at the begining of `code` |
161+
| `0x40` | `0x80` | `Write` | 0 | Assume written at the beginning of `code`|
162162
| `0x40` | `0x80` | `Read` | 4 | `56 MLOAD` |
163163
| - | | | | |
164164
| `0x80` | `0` | `Write` | | Init |

bus-mapping/src/circuit_input_builder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl FeatureConfig {
8484
#[derive(Debug, Clone, Copy)]
8585
pub struct FixedCParams {
8686
/// Maximum number of rw operations in the state circuit (RwTable length /
87-
/// nummber of rows). This must be at least the number of rw operations
87+
/// number of rows). This must be at least the number of rw operations
8888
/// + 1, in order to allocate at least a Start row.
8989
pub max_rws: usize,
9090
// TODO: evm_rows: Maximum number of rows in the EVM Circuit
@@ -190,7 +190,7 @@ pub struct CircuitInputBuilder<C: CircuitsParams> {
190190
pub code_db: CodeDB,
191191
/// Block
192192
pub block: Block,
193-
/// Circuits Setup Paramteres
193+
/// Circuits Setup Parameters
194194
pub circuits_params: C,
195195
/// Block Context
196196
pub block_ctx: BlockContext,
@@ -544,7 +544,7 @@ pub fn keccak_inputs(block: &Block, code_db: &CodeDB) -> Result<Vec<Vec<u8>>, Er
544544
}
545545

546546
/// Generate the keccak inputs required by the SignVerify Chip from the
547-
/// signature datas.
547+
/// signature data.
548548
pub fn keccak_inputs_sign_verify(sigs: &[SignData]) -> Vec<Vec<u8>> {
549549
let mut inputs = Vec::new();
550550
for sig in sigs {

bus-mapping/src/circuit_input_builder/block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub struct Block {
6060
/// chain id
6161
pub chain_id: Word,
6262
/// history hashes contains most recent 256 block hashes in history, where
63-
/// the lastest one is at history_hashes[history_hashes.len() - 1].
63+
/// the latest one is at history_hashes[history_hashes.len() - 1].
6464
pub history_hashes: Vec<Word>,
6565
/// coinbase
6666
pub coinbase: Address,

bus-mapping/src/circuit_input_builder/call.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub struct Call {
6363
pub kind: CallKind,
6464
/// This call is being executed without write access (STATIC)
6565
pub is_static: bool,
66-
/// This call generated implicity by a Transaction.
66+
/// This call generated implicitly by a Transaction.
6767
pub is_root: bool,
6868
/// This call is persistent or call stack reverts at some point
6969
pub is_persistent: bool,

bus-mapping/src/circuit_input_builder/execution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ impl From<(Word, Word, Word)> for ExpStep {
337337
}
338338
}
339339

340-
/// Event representating an exponentiation `a ^ b == d (mod 2^256)`.
340+
/// Event representing an exponentiation `a ^ b == d (mod 2^256)`.
341341
#[derive(Clone, Debug)]
342342
pub struct ExpEvent {
343343
/// Identifier for the exponentiation trace.

bus-mapping/src/circuit_input_builder/tracer_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fn check_err_depth(step: &GethExecStep, next_step: Option<&GethExecStep>) -> boo
146146

147147
#[test]
148148
fn tracer_err_depth() {
149-
// Recursive CALL will exaust the call depth
149+
// Recursive CALL will exhaust the call depth
150150
let code = bytecode! {
151151
PUSH1(0x0) // retLength
152152
PUSH1(0x0) // retOffset

bus-mapping/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub enum OogError {
105105
SelfDestruct,
106106
}
107107

108-
// Given OpCodeId, returns correponding OogError.
108+
// Given OpCodeId, returns corresponding OogError.
109109
impl From<&OpcodeId> for OogError {
110110
fn from(op: &OpcodeId) -> Self {
111111
match op {

bus-mapping/src/evm/opcodes/callop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl<const N_ARGS: usize> Opcode for CallOpcode<N_ARGS> {
170170
// read balance of caller to compare to value for insufficient_balance checking
171171
// in circuit, also use for callcode successful case check balance is
172172
// indeed larger than transfer value. for call opcode, it does in
173-
// tranfer gadget implicitly.
173+
// transfer gadget implicitly.
174174
state.account_read(
175175
&mut exec_step,
176176
call.caller_address,

bus-mapping/src/evm/opcodes/error_write_protection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl Opcode for ErrorWriteProtection {
4444
.contains(&geth_step.op));
4545

4646
if geth_step.op == OpcodeId::CALL {
47-
// get only the frist three stack elements since the third one is the value we
47+
// get only the first three stack elements since the third one is the value we
4848
// want to check.
4949
for i in 0..3 {
5050
state.stack_read(

0 commit comments

Comments
 (0)