all: fix some typos in comments and names #31023
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to improve code clarity and consistency across multiple files. The changes mainly involve adding detailed comments to functions and renaming variables and functions for better readability.
Improvements to Comments and Documentation:
accounts/accounts.go
: Added detailed comments toWalletDropped
to explain when the event is fired.cmd/devp2p/internal/v4test/discv4tests.go
: Updated comments for multiple functions to provide clear descriptions of their behavior, such asPingExtraDataWrongFrom
,PingPastExpiration
,WrongPacketType
, and others. [1] [2] [3] [4] [5] [6] [7] [8] [9]core/types/deposit.go
: RenamedUnpackIntoDeposit
toDepositLogToRequest
and updated the comment for clarity.Variable and Function Renaming:
core/txpool/legacypool/legacypool2_test.go
: Renamedcur_balance
tocurBalance
for consistency.core/vm/eof_validation.go
: Renamedmax_size
tomaxSize
for consistency. [1] [2]crypto/ecies/ecies.go
: Renamed several functions for clarity, such asExport
toExportECDSA
,Import
toImportECDSAPublic
, andGenerate
toGenerateKey
. [1] [2] [3]Code Formatting:
cmd/devp2p/internal/ethtest/protocol.go
: Added a newline for better readability.core/vm/program/program.go
: Added a newline for better readability. [1] [2] [3]crypto/blake2b/blake2b.go
: Updated comments to follow a consistent format.crypto/bn256/gnark/pairing.go
: Updated comments for clarity.eth/tracers/dir.go
: Updated comments for clarity.Miscellaneous:
consensus/clique/snapshot_test.go
: Removed an unnecessarybreak
statement.core/tracing/hooks.go
: Updated comment forGasChangeCallContractCreation2
for clarity.metrics/gauge_info.go
: Updated comment forGaugeInfoSnapshot
for clarity.These changes collectively enhance the readability and maintainability of the codebase.