Skip to content

Commit

Permalink
chore: fix some comments (#2191)
Browse files Browse the repository at this point in the history
  • Loading branch information
VitalikButerinEth authored Jun 19, 2024
1 parent 588b2e5 commit 976cbeb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blockchain/chainio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestErrNotInMainChain(t *testing.T) {

// Ensure the stringized output for the error is as expected.
if err.Error() != errStr {
t.Fatalf("errNotInMainChain retuned unexpected error string - "+
t.Fatalf("errNotInMainChain returned unexpected error string - "+
"got %q, want %q", err.Error(), errStr)
}

Expand Down
2 changes: 1 addition & 1 deletion blockchain/indexers/addrindex.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const (
// consumes. It consists of the address key + 1 byte for the level.
levelKeySize = addrKeySize + 1

// levelOffset is the offset in the level key which identifes the level.
// levelOffset is the offset in the level key which identifies the level.
levelOffset = levelKeySize - 1

// addrKeyTypePubKeyHash is the address type in an address key which
Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func supportedSubsystems() []string {
// the levels accordingly. An appropriate error is returned if anything is
// invalid.
func parseAndSetDebugLevels(debugLevel string) error {
// When the specified string doesn't have any delimters, treat it as
// When the specified string doesn't have any delimiters, treat it as
// the log level for all subsystems.
if !strings.Contains(debugLevel, ",") && !strings.Contains(debugLevel, "=") {
// Validate debug log level.
Expand Down

0 comments on commit 976cbeb

Please sign in to comment.