Skip to content

Commit 976cbeb

Browse files
chore: fix some comments (#2191)
1 parent 588b2e5 commit 976cbeb

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

blockchain/chainio_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func TestErrNotInMainChain(t *testing.T) {
2323

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

blockchain/indexers/addrindex.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const (
3636
// consumes. It consists of the address key + 1 byte for the level.
3737
levelKeySize = addrKeySize + 1
3838

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

4242
// addrKeyTypePubKeyHash is the address type in an address key which

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func supportedSubsystems() []string {
244244
// the levels accordingly. An appropriate error is returned if anything is
245245
// invalid.
246246
func parseAndSetDebugLevels(debugLevel string) error {
247-
// When the specified string doesn't have any delimters, treat it as
247+
// When the specified string doesn't have any delimiters, treat it as
248248
// the log level for all subsystems.
249249
if !strings.Contains(debugLevel, ",") && !strings.Contains(debugLevel, "=") {
250250
// Validate debug log level.

0 commit comments

Comments
 (0)