Skip to content

Commit

Permalink
chore: fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Nov 15, 2023
1 parent e04a507 commit c5839ca
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions halo2_proofs/src/circuit/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl<V> Value<V> {
/// # Examples
///
/// ```
/// use halo2_proofs::circuit::Value;
/// use halo2_axiom::circuit::Value;
///
/// let v = Value::known(37);
/// ```
Expand Down Expand Up @@ -645,7 +645,7 @@ impl<V> Value<V> {
/// If you have a `Value<F: Field>`, convert it to `Value<Assigned<F>>` first:
/// ```
/// # use halo2curves::pasta::pallas::Base as F;
/// use halo2_proofs::{circuit::Value, plonk::Assigned};
/// use halo2_axiom::{circuit::Value, plonk::Assigned};
///
/// let v = Value::known(F::from(2));
/// let v: Value<Assigned<F>> = v.into();
Expand Down
2 changes: 1 addition & 1 deletion halo2_proofs/src/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl<F: Field> Mul<F> for Value<F> {
/// # Examples
///
/// ```
/// use halo2_proofs::{
/// use halo2_axiom::{
/// circuit::{Layouter, SimpleFloorPlanner, Value},
/// dev::{FailureLocation, MockProver, VerifyFailure},
/// plonk::{Advice, Any, Circuit, Column, ConstraintSystem, Error, Selector},
Expand Down
2 changes: 1 addition & 1 deletion halo2_proofs/src/dev/gates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct Gate {
///
/// ```
/// use ff::Field;
/// use halo2_proofs::{
/// use halo2_axiom::{
/// circuit::{Layouter, SimpleFloorPlanner},
/// dev::CircuitGates,
/// plonk::{Circuit, ConstraintSystem, Error},
Expand Down
2 changes: 1 addition & 1 deletion halo2_proofs/src/dev/graph/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use crate::{
/// # Examples
///
/// ```ignore
/// use halo2_proofs::dev::CircuitLayout;
/// use halo2_axiom::dev::CircuitLayout;
/// use plotters::prelude::*;
///
/// let drawing_area = BitMapBackend::new("example-circuit-layout.png", (1024, 768))
Expand Down
2 changes: 1 addition & 1 deletion halo2_proofs/src/dev/tfp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use crate::{
///
/// ```ignore
/// use ff::Field;
/// use halo2_proofs::{
/// use halo2_axiom::{
/// circuit::{floor_planner, Layouter, Value},
/// dev::TracingFloorPlanner,
/// plonk::{Circuit, ConstraintSystem, Error},
Expand Down
5 changes: 4 additions & 1 deletion halo2_proofs/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
//! # halo2_proofs
//! # halo2-axiom
//! This is a fork of <https://github.com/privacy-scaling-explorations/halo2>, which is itself a fork of ZCash's "halo2_proofs" crate.
//! This fork uses the KZG polynomial commitment scheme for the proving backend.
//! Publishing this crate for better versioning in Axiom's production usage.

#![cfg_attr(docsrs, feature(doc_cfg))]
// The actual lints we want to disable.
Expand Down
12 changes: 6 additions & 6 deletions halo2_proofs/src/plonk/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,9 @@ impl TryFrom<Column<Any>> for Column<Instance> {
///
/// Selectors can be used to conditionally enable (portions of) gates:
/// ```
/// use halo2_proofs::poly::Rotation;
/// use halo2_axiom::poly::Rotation;
/// # use halo2curves::pasta::Fp;
/// # use halo2_proofs::plonk::ConstraintSystem;
/// # use halo2_axiom::plonk::ConstraintSystem;
///
/// # let mut meta = ConstraintSystem::<Fp>::default();
/// let a = meta.advice_column();
Expand All @@ -437,12 +437,12 @@ impl TryFrom<Column<Any>> for Column<Instance> {
/// Selectors are disabled on all rows by default, and must be explicitly enabled on each
/// row when required:
/// ```
/// use halo2_proofs::{
/// use halo2_axiom::{
/// circuit::{Chip, Layouter, Value},
/// plonk::{Advice, Column, Error, Selector},
/// };
/// use ff::Field;
/// # use halo2_proofs::plonk::Fixed;
/// # use halo2_axiom::plonk::Fixed;
///
/// struct Config {
/// a: Column<Advice>,
Expand Down Expand Up @@ -1410,9 +1410,9 @@ impl<F: Field> From<Expression<F>> for Vec<Constraint<F>> {
/// A set of polynomial constraints with a common selector.
///
/// ```
/// use halo2_proofs::{plonk::{Constraints, Expression}, poly::Rotation};
/// use halo2_axiom::{plonk::{Constraints, Expression}, poly::Rotation};
/// use halo2curves::pasta::Fp;
/// # use halo2_proofs::plonk::ConstraintSystem;
/// # use halo2_axiom::plonk::ConstraintSystem;
///
/// # let mut meta = ConstraintSystem::<Fp>::default();
/// let a = meta.advice_column();
Expand Down

0 comments on commit c5839ca

Please sign in to comment.