chore: fix typos (#1451)

This commit is contained in:
vuittont60 2024-01-09 17:33:17 +08:00 committed by GitHub
parent cb19f21994
commit dcbfef6df9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1068,7 +1068,7 @@ where
/// (Prod_{i=1}^11 x_i) / phi
/// The 6th Frob map is nontrivial but leaves Fp6 fixed and hence must be the conjugate:
/// x_6 = (a + bz)_6 = a - bz = x.conj()
/// Letting prod_17 = x_1 * x_7, the remaining factors in the numerator can be expresed as:
/// Letting prod_17 = x_1 * x_7, the remaining factors in the numerator can be expressed as:
/// [(prod_17) * (prod_17)_2] * (prod_17)_4 * [(prod_17) * (prod_17)_2]_1
/// By Galois theory, both the following are in Fp2 and are complex conjugates
/// prod_odds, prod_evens

View File

@ -32,7 +32,7 @@ pub(crate) struct KeccakSpongeColumnsView<T: Copy> {
/// not a padding byte; 0 otherwise.
pub is_full_input_block: T,
/// The context of the base addresss at which we will read the input block.
/// The context of the base address at which we will read the input block.
pub context: T,
/// The segment of the base address at which we will read the input block.
pub segment: T,

View File

@ -3,7 +3,7 @@ use num::traits::AsPrimitive;
pub(crate) const SEGMENT_SCALING_FACTOR: usize = 32;
/// This contains all the existing memory segments. The values in the enum are shifted by 32 bits
/// to allow for convenient address components (context / segement / virtual) bundling in the kernel.
/// to allow for convenient address components (context / segment / virtual) bundling in the kernel.
#[allow(dead_code)]
#[allow(clippy::enum_clike_unportable_variant)]
#[derive(Copy, Clone, Eq, PartialEq, Hash, Ord, PartialOrd, Debug)]