From 3adabbedf187aaeb6e6961f45e8941f62d2deef5 Mon Sep 17 00:00:00 2001 From: wborgeaud Date: Mon, 9 Aug 2021 14:15:20 +0200 Subject: [PATCH] Fix comments --- src/gadgets/arithmetic_extension.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gadgets/arithmetic_extension.rs b/src/gadgets/arithmetic_extension.rs index 93cb7bc8..1134f972 100644 --- a/src/gadgets/arithmetic_extension.rs +++ b/src/gadgets/arithmetic_extension.rs @@ -347,7 +347,7 @@ impl, const D: usize> CircuitBuilder { self.mul_three_extension(x, x, x) } - /// Returns `a*b + c`. + /// Returns `a * b + c`. pub fn mul_add_ext_algebra( &mut self, a: ExtensionAlgebraTarget, @@ -376,6 +376,8 @@ impl, const D: usize> CircuitBuilder { ExtensionAlgebraTarget(res.try_into().unwrap()) } + + /// Returns `a * b`. pub fn mul_ext_algebra( &mut self, a: ExtensionAlgebraTarget, @@ -467,8 +469,7 @@ impl, const D: usize> CircuitBuilder { self.mul_extension(a_ext, b) } - /// Returns `a * b + c`, where `b,c` are in the extension algebra and `a` in the extension field. - /// extension field. + /// Returns `a * b + c`, where `b, c` are in the extension algebra and `a` in the extension field. pub fn scalar_mul_add_ext_algebra( &mut self, a: ExtensionTarget, @@ -495,7 +496,7 @@ impl, const D: usize> CircuitBuilder { c } - /// Returns `a * b`, where `b,c` are in the extension algebra and `a` in the extension field. + /// Returns `a * b`, where `b` is in the extension algebra and `a` in the extension field. pub fn scalar_mul_ext_algebra( &mut self, a: ExtensionTarget,