Skip to content

Commit

Permalink
fix doc tests`
Browse files Browse the repository at this point in the history
  • Loading branch information
plafer committed Apr 20, 2024
1 parent e911a4b commit c787454
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ impl Prover for WorkProver {
fn new_evaluator<'a, E: FieldElement<BaseField = BaseElement>>(
&self,
air: &'a WorkAir,
aux_rand_elements: winterfell::AuxTraceRandElements<E>,
aux_rand_elements: Option<Self::AuxRandElements<E>>,
composition_coefficients: winterfell::ConstraintCompositionCoefficients<E>,
) -> Self::ConstraintEvaluator<'a, E> {
DefaultConstraintEvaluator::new(air, aux_rand_elements, composition_coefficients)
Expand Down
9 changes: 4 additions & 5 deletions winterfell/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,11 @@
//! fn new_evaluator<'a, E: FieldElement<BaseField = Self::BaseField>>(
//! &self,
//! air: &'a Self::Air,
//! aux_rand_elements: winterfell::AuxTraceRandElements<E>,
//! composition_coefficients: winterfell::ConstraintCompositionCoefficients<E>,
//! aux_rand_elements: Option<Self::AuxRandElements<E>>,
//! composition_coefficients: ConstraintCompositionCoefficients<E>,
//! ) -> Self::ConstraintEvaluator<'a, E> {
//! DefaultConstraintEvaluator::new(air, aux_rand_elements, composition_coefficients)
//! }
//! }
//! ```
//!

Check failure on line 381 in winterfell/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Rust stable on ubuntu

this file contains an unclosed delimiter

Check failure on line 381 in winterfell/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Rust nightly on ubuntu

this file contains an unclosed delimiter
//! Now, we are finally ready to generate and verify STARK proofs.
Expand Down Expand Up @@ -511,8 +510,8 @@
//! # fn new_evaluator<'a, E: FieldElement<BaseField = Self::BaseField>>(
//! # &self,
//! # air: &'a Self::Air,
//! # aux_rand_elements: winterfell::AuxTraceRandElements<E>,
//! # composition_coefficients: winterfell::ConstraintCompositionCoefficients<E>,
//! # aux_rand_elements: Option<Self::AuxRandElements<E>>,
//! # composition_coefficients: ConstraintCompositionCoefficients<E>,
//! # ) -> Self::ConstraintEvaluator<'a, E> {

Check failure on line 515 in winterfell/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Rust stable on ubuntu

cannot find type `ConstraintCompositionCoefficients` in this scope

Check failure on line 515 in winterfell/src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Rust nightly on ubuntu

cannot find type `ConstraintCompositionCoefficients` in this scope
//! # DefaultConstraintEvaluator::new(air, aux_rand_elements, composition_coefficients)
//! # }
Expand Down

0 comments on commit c787454

Please sign in to comment.