From 8930e238b7c907f01037d10babf8364a92183c47 Mon Sep 17 00:00:00 2001 From: VitalikButerinEth Date: Wed, 29 May 2024 21:02:57 +0800 Subject: [PATCH] chore: fix some comments --- 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 a9e19b6f01..e9e2c0b616 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 271e1665a7..2a56574acd 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 486ce293a3..9bbce7f69a 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.