Skip to content

Typo fix Update commitment.go#12961

Merged
smartcontracts merged 1 commit intoethereum-optimism:developfrom
brawncode:patch-2
Nov 19, 2024
Merged

Typo fix Update commitment.go#12961
smartcontracts merged 1 commit intoethereum-optimism:developfrom
brawncode:patch-2

Conversation

@brawncode
Copy link
Contributor

Description
This pull request corrects a typo in the comment for the Encode method of the Keccak256Commitment type.

Issue:

The original comment contained an incorrect word:

// Encode adds a commitment type prefix self describing the commitment.

The word "self" is not appropriate in this context and should be replaced with "that" to make the sentence grammatically correct and clear.

Fix:

The corrected comment is:

// Encode adds a commitment type prefix that describes the commitment.

Importance:

Accurate and clear comments are essential for maintaining code readability and understanding. This fix ensures that future developers reading the code will not be confused by the incorrect use of "self" in the comment.

Changes:

  • Updated the comment for the Encode method in the Keccak256Commitment type.

Let me know if there are additional areas to improve!

Fix typo in comment for Keccak256Commitment.Encode method
@brawncode brawncode requested review from a team as code owners November 19, 2024 07:03
@smartcontracts
Copy link
Contributor

/ci authorize 92ef94a

@smartcontracts smartcontracts added this pull request to the merge queue Nov 19, 2024
@smartcontracts
Copy link
Contributor

Thanks!

Merged via the queue into ethereum-optimism:develop with commit fbcfb83 Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants