From 5dc08360854a778dacc8d8c3348030e982717bc3 Mon Sep 17 00:00:00 2001 From: threehonor Date: Wed, 12 Jun 2024 14:04:15 +0800 Subject: [PATCH] chore: make function comments match function names Signed-off-by: threehonor --- constraint/string_utils.go | 2 +- examples/rollup/circuit.go | 2 +- examples/rollup/operator.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/constraint/string_utils.go b/constraint/string_utils.go index 427d5ed4e7..35740f417a 100644 --- a/constraint/string_utils.go +++ b/constraint/string_utils.go @@ -32,7 +32,7 @@ func (sbb *StringBuilder) WriteLinearExpression(l LinearExpression) { } } -// WriteLinearExpression appends the term to the current buffer +// WriteTerm appends the term to the current buffer func (sbb *StringBuilder) WriteTerm(t Term) { if t.CoeffID() == CoeffIdZero { sbb.WriteByte('0') diff --git a/examples/rollup/circuit.go b/examples/rollup/circuit.go index 27b47f4fda..6651a87440 100644 --- a/examples/rollup/circuit.go +++ b/examples/rollup/circuit.go @@ -172,7 +172,7 @@ func (circuit *Circuit) Define(api frontend.API) error { return nil } -// verifySignatureTransfer ensures that the signature of the transfer is valid +// verifyTransferSignature ensures that the signature of the transfer is valid func verifyTransferSignature(api frontend.API, t TransferConstraints, hFunc mimc.MiMC) error { // Reset the hash state! diff --git a/examples/rollup/operator.go b/examples/rollup/operator.go index c4bee69c1d..d906a1a9b4 100644 --- a/examples/rollup/operator.go +++ b/examples/rollup/operator.go @@ -92,7 +92,7 @@ func (o *Operator) readAccount(i uint64) (Account, error) { return res, nil } -// updateAccount updates the state according to transfer +// updateState updates the state according to transfer // numTransfer is the number of the transfer currently handled (between 0 and BatchSizeCircuit) func (o *Operator) updateState(t Transfer, numTransfer int) error {