From 9dc9cdfa826c7a2566a7d49f2c5c1b0a29734781 Mon Sep 17 00:00:00 2001 From: shuoer86 <129674997+shuoer86@users.noreply.github.com> Date: Fri, 20 Oct 2023 20:52:58 +0800 Subject: [PATCH] fix: typos --- plonky2x/core/src/frontend/curta/ec/aggregate/air.rs | 2 +- plonky2x/core/src/frontend/ecc/ed25519/gadgets/curve.rs | 2 +- plonky2x/core/src/frontend/hint/asynchronous/builder.rs | 2 +- plonky2x/core/src/frontend/hint/asynchronous/generator.rs | 2 +- plonky2x/core/src/frontend/hint/synchronous.rs | 2 +- plonky2x/core/src/frontend/mapreduce/mod.rs | 6 +++--- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plonky2x/core/src/frontend/curta/ec/aggregate/air.rs b/plonky2x/core/src/frontend/curta/ec/aggregate/air.rs index 5c446d3bb..d4771d58b 100644 --- a/plonky2x/core/src/frontend/curta/ec/aggregate/air.rs +++ b/plonky2x/core/src/frontend/curta/ec/aggregate/air.rs @@ -120,7 +120,7 @@ impl, E: EllipticCurveAir, const D: usize> CircuitBuilderCurve AffinePointTarget { x: x3, y: y3 } } - // This funciton will accept an affine point target and return + // This function will accept an affine point target and return // the point in compressed form (bit vector). fn compress_point(&mut self, p: &AffinePointTarget) -> CompressedPointTarget { let mut bits = biguint_to_bits_target::(self, &p.y.value); diff --git a/plonky2x/core/src/frontend/hint/asynchronous/builder.rs b/plonky2x/core/src/frontend/hint/asynchronous/builder.rs index be0f3ec2a..bafc1f8dc 100644 --- a/plonky2x/core/src/frontend/hint/asynchronous/builder.rs +++ b/plonky2x/core/src/frontend/hint/asynchronous/builder.rs @@ -121,7 +121,7 @@ mod tests { let back_time = output_stream.read::(&mut builder); builder.write(back_time); - // runing a few in parallel to make sure the tests takes roughly the duratio of one sleep. + // running a few in parallel to make sure the tests takes roughly the duratio of one sleep. let mut fail_input_stream = VariableStream::new(); let fail_time = builder.constant::(10u8); fail_input_stream.write(&fail_time); diff --git a/plonky2x/core/src/frontend/hint/asynchronous/generator.rs b/plonky2x/core/src/frontend/hint/asynchronous/generator.rs index 8b17fcbbf..5416babc0 100644 --- a/plonky2x/core/src/frontend/hint/asynchronous/generator.rs +++ b/plonky2x/core/src/frontend/hint/asynchronous/generator.rs @@ -199,7 +199,7 @@ impl, H: AsyncHint, const D: usize> AsyncHintRunner< HintPoll::Pending => { // Check the hint channel for the output. If not ready, return `HintPoll::Pending`. if let Ok(mut output_stream) = self.channel.rx_out.try_recv() { - trace!("Async Hint {:?} : recieved output from hint", H::id()); + trace!("Async Hint {:?} : received output from hint", H::id()); let output_values = output_stream.read_all(); let output_vars = self.output_stream.real_all(); assert_eq!(output_values.len(), output_vars.len()); diff --git a/plonky2x/core/src/frontend/hint/synchronous.rs b/plonky2x/core/src/frontend/hint/synchronous.rs index 3f32462ba..74a983fac 100644 --- a/plonky2x/core/src/frontend/hint/synchronous.rs +++ b/plonky2x/core/src/frontend/hint/synchronous.rs @@ -96,7 +96,7 @@ mod tests { let b = output_stream.read::(&mut builder); builder.write(b); - // runing a few in parallel to make sure the tests takes roughly the duratio of one sleep. + // running a few in parallel to make sure the tests takes roughly the duratio of one sleep. let output_stream = builder.async_hint(input_stream.clone(), Async(hint.clone())); let _ = output_stream.read::(&mut builder); let output_stream = builder.async_hint(input_stream.clone(), Async(hint.clone())); diff --git a/plonky2x/core/src/frontend/mapreduce/mod.rs b/plonky2x/core/src/frontend/mapreduce/mod.rs index 049e49684..f18802387 100644 --- a/plonky2x/core/src/frontend/mapreduce/mod.rs +++ b/plonky2x/core/src/frontend/mapreduce/mod.rs @@ -12,7 +12,7 @@ //! we can pass in a block hash as the dynamic data to the map and reduce functions to say that //! in each map call we want to grab the storage slot at slot i, which is a compile time constant. //! -//! Under the hood, we compute each map in a seperate proof and perform the reductions by generating +//! Under the hood, we compute each map in a separate proof and perform the reductions by generating //! a proof for each reduction between two proofs until we have a single proof. pub mod generator; @@ -192,7 +192,7 @@ impl, const D: usize> CircuitBuilder { // Build a map circuit which maps from I -> O using the closure `m`. let map_circuit = self.build_map(&map_fn); - debug!("succesfully built map circuit: id={}", map_circuit.id()); + debug!("successfully built map circuit: id={}", map_circuit.id()); // Save map circuit and map circuit input target to build folder. let map_circuit_id = map_circuit.id(); @@ -219,7 +219,7 @@ impl, const D: usize> CircuitBuilder { &generator_serializer, ); reduce_circuits.push(reduce_circuit); - debug!("succesfully built reduce circuit: id={}", reduce_circuit_id); + debug!("successfully built reduce circuit: id={}", reduce_circuit_id); } // Create generator to generate map and reduce proofs for each layer.