Skip to content

Commit

Permalink
Update types/row_proof.go
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id authored Jun 4, 2024
1 parent 1e009af commit 03e0dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/row_proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type RowProof struct {
// the proof is not correctly constructed.
func (rp RowProof) Validate() error {
if rp.EndRow < rp.StartRow {
return fmt.Errorf("end row %d cannot be smaller than start row %d", rp.EndRow, rp.StartRow)
return fmt.Errorf("end row %d cannot be less than start row %d", rp.EndRow, rp.StartRow)
}
if int(rp.EndRow-rp.StartRow+1) != len(rp.RowRoots) {
return fmt.Errorf("the number of rows %d must equal the number of row roots %d", int(rp.EndRow-rp.StartRow+1), len(rp.RowRoots))
Expand Down

0 comments on commit 03e0dbd

Please sign in to comment.