Commit fbcfb837 authored by brawn's avatar brawn Committed by GitHub

Typo fix Update commitment.go (#12961)

Fix typo in comment for Keccak256Commitment.Encode method
parent 3d50ab9e
...@@ -108,7 +108,7 @@ func (c Keccak256Commitment) CommitmentType() CommitmentType { ...@@ -108,7 +108,7 @@ func (c Keccak256Commitment) CommitmentType() CommitmentType {
return Keccak256CommitmentType return Keccak256CommitmentType
} }
// Encode adds a commitment type prefix self describing the commitment. // Encode adds a commitment type prefix that describes the commitment.
func (c Keccak256Commitment) Encode() []byte { func (c Keccak256Commitment) Encode() []byte {
return append([]byte{byte(Keccak256CommitmentType)}, c...) return append([]byte{byte(Keccak256CommitmentType)}, c...)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment