diff --git a/evm/src/cpu/contextops.rs b/evm/src/cpu/contextops.rs index 0afc070f..77debc75 100644 --- a/evm/src/cpu/contextops.rs +++ b/evm/src/cpu/contextops.rs @@ -105,7 +105,7 @@ fn eval_packed_get( } /// Circuit version of `eval_packed_get`. -/// Evalutes constraints for GET_CONTEXT. +/// Evaluates constraints for GET_CONTEXT. fn eval_ext_circuit_get, const D: usize>( builder: &mut CircuitBuilder, lv: &CpuColumnsView>, diff --git a/evm/src/cpu/kernel/stack/permutations.rs b/evm/src/cpu/kernel/stack/permutations.rs index 50be605d..69d5f2e6 100644 --- a/evm/src/cpu/kernel/stack/permutations.rs +++ b/evm/src/cpu/kernel/stack/permutations.rs @@ -59,7 +59,7 @@ fn apply_perm(permutation: Vec>, mut lst: Vec(lst_a: &[T], lst_b: &[T]) -> Vec> { - // We should check to ensure that A and B are indeed rearrangments of each other. + // We should check to ensure that A and B are indeed rearrangements of each other. assert!(is_permutation(lst_a, lst_b)); let n = lst_a.len(); diff --git a/evm/src/util.rs b/evm/src/util.rs index 3d9564b5..f4d80859 100644 --- a/evm/src/util.rs +++ b/evm/src/util.rs @@ -75,12 +75,12 @@ pub(crate) fn u256_to_usize(u256: U256) -> Result { u256.try_into().map_err(|_| ProgramError::IntegerTooLarge) } -/// Converts a `U256` to a `u8`, erroring in case of overlow instead of panicking. +/// Converts a `U256` to a `u8`, erroring in case of overflow instead of panicking. pub(crate) fn u256_to_u8(u256: U256) -> Result { u256.try_into().map_err(|_| ProgramError::IntegerTooLarge) } -/// Converts a `U256` to a `bool`, erroring in case of overlow instead of panicking. +/// Converts a `U256` to a `bool`, erroring in case of overflow instead of panicking. pub(crate) fn u256_to_bool(u256: U256) -> Result { if u256 == U256::zero() { Ok(false) diff --git a/field/src/extension/mod.rs b/field/src/extension/mod.rs index bbbaca25..3586055e 100644 --- a/field/src/extension/mod.rs +++ b/field/src/extension/mod.rs @@ -15,7 +15,7 @@ pub trait OEF: FieldExtension { // Element W of BaseField, such that `X^d - W` is irreducible over BaseField. const W: Self::BaseField; - // Element of BaseField such that DTH_ROOT^D == 1. Implementors + // Element of BaseField such that DTH_ROOT^D == 1. Implementers // should set this to W^((p - 1)/D), where W is as above and p is // the order of the BaseField. const DTH_ROOT: Self::BaseField; diff --git a/plonky2/src/gates/selectors.rs b/plonky2/src/gates/selectors.rs index 1018ba75..be9a9da8 100644 --- a/plonky2/src/gates/selectors.rs +++ b/plonky2/src/gates/selectors.rs @@ -40,7 +40,7 @@ pub enum LookupSelectors { } /// Returns selector polynomials for each LUT. We have two constraint domains (remember that gates are stored upside down): -/// - [last_lut_row, first_lut_row] (Sum and RE transition contraints), +/// - [last_lut_row, first_lut_row] (Sum and RE transition constraints), /// - [last_lu_row, last_lut_row - 1] (LDC column transition constraints). /// We also add two more: /// - {first_lut_row + 1} where we check the initial values of sum and RE (which are 0), diff --git a/plonky2/src/hash/poseidon_goldilocks.rs b/plonky2/src/hash/poseidon_goldilocks.rs index 3e089e64..1fd5af13 100644 --- a/plonky2/src/hash/poseidon_goldilocks.rs +++ b/plonky2/src/hash/poseidon_goldilocks.rs @@ -323,7 +323,7 @@ mod poseidon12_mds { let (u8, u9, u10) = fft4_real([s2, s5, s8, s11]); // This where the multiplication in frequency domain is done. More precisely, and with - // the appropriate permuations in between, the sequence of + // the appropriate permutations in between, the sequence of // 3-point FFTs --> multiplication by twiddle factors --> Hadamard multiplication --> // 3 point iFFTs --> multiplication by (inverse) twiddle factors // is "squashed" into one step composed of the functions "block1", "block2" and "block3".