Skip to content

Commit

Permalink
chore: make function comments match function names (#1163)
Browse files Browse the repository at this point in the history
Signed-off-by: threehonor <[email protected]>
  • Loading branch information
threehonor authored Jun 12, 2024
1 parent 9452701 commit ccf02f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion constraint/string_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion examples/rollup/circuit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down
2 changes: 1 addition & 1 deletion examples/rollup/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit ccf02f9

Please sign in to comment.