From 0b1848000a4a9b7870feb99d02bc851e55ce9164 Mon Sep 17 00:00:00 2001 From: taikoon Date: Wed, 18 Dec 2024 10:16:18 +0800 Subject: [PATCH] Fix comments (#587) * Update generation.rs * Update poseidon2.rs --- blake3-air/src/generation.rs | 2 +- mersenne-31/src/poseidon2.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blake3-air/src/generation.rs b/blake3-air/src/generation.rs index 894488a69..32a219394 100644 --- a/blake3-air/src/generation.rs +++ b/blake3-air/src/generation.rs @@ -191,7 +191,7 @@ fn generate_trace_row_for_round( save_state_to_trace(&mut round_data.state_output, state); } -/// Perform half of a quarter round round on the given elements. +/// Perform half of a quarter round on the given elements. /// /// The boolean flag, indicates if this is the first (false) or second (true) half round. fn verifiable_half_round( diff --git a/mersenne-31/src/poseidon2.rs b/mersenne-31/src/poseidon2.rs index 65df773f8..e5953b0db 100644 --- a/mersenne-31/src/poseidon2.rs +++ b/mersenne-31/src/poseidon2.rs @@ -45,7 +45,7 @@ pub type Poseidon2Mersenne31 = Poseidon2< MERSENNE31_S_BOX_DEGREE, >; -/// An implementation of the the matrix multiplications in the internal and external layers of Poseidon2. +/// An implementation of the matrix multiplications in the internal and external layers of Poseidon2. /// /// This can act on [FA; WIDTH] for any FieldAlgebra which implements multiplication by Mersenne31 field elements. /// If you have either `[Mersenne31::Packing; WIDTH]` or `[Mersenne31; WIDTH]` it will be much faster