From 976cbebd09e395bc866f2a6e4a012549a3f7f6cf Mon Sep 17 00:00:00 2001 From: veth <162897869+VitalikButerinEth@users.noreply.github.com> Date: Wed, 19 Jun 2024 23:37:10 +0800 Subject: [PATCH] chore: fix some comments (#2191) --- blockchain/chainio_test.go | 2 +- blockchain/indexers/addrindex.go | 2 +- config.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blockchain/chainio_test.go b/blockchain/chainio_test.go index a9e19b6f..e9e2c0b6 100644 --- a/blockchain/chainio_test.go +++ b/blockchain/chainio_test.go @@ -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) } diff --git a/blockchain/indexers/addrindex.go b/blockchain/indexers/addrindex.go index 271e1665..2a56574a 100644 --- a/blockchain/indexers/addrindex.go +++ b/blockchain/indexers/addrindex.go @@ -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 diff --git a/config.go b/config.go index 486ce293..9bbce7f6 100644 --- a/config.go +++ b/config.go @@ -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.