Skip to content

Commit

Permalink
Merge pull request #57 from zhiqiangxu/fix_comment_of_add_and_add_wit…
Browse files Browse the repository at this point in the history
…h_constant

fix comment of add/add_with_constant
  • Loading branch information
kilic authored Dec 26, 2022
2 parents 66b4a90 + 8ed1daf commit 52d5f25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maingate/src/instructions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ pub trait MainGateInstructions<F: FieldExt, const WIDTH: usize>: Chip<F> {
}

/// Assigns a new witness `r` as:
/// `r = a * b`
/// `r = a + b`
fn add(
&self,
ctx: &mut RegionCtx<'_, F>,
Expand All @@ -877,7 +877,7 @@ pub trait MainGateInstructions<F: FieldExt, const WIDTH: usize>: Chip<F> {
}

/// Assigns a new witness `r` as:
/// `r = a * b + constant`
/// `r = a + b + constant`
fn add_with_constant(
&self,
ctx: &mut RegionCtx<'_, F>,
Expand Down

0 comments on commit 52d5f25

Please sign in to comment.