chore: fix some comments (#2191)

This commit is contained in:
veth 2024-06-19 23:37:10 +08:00 committed by GitHub
parent 588b2e58cf
commit 976cbebd09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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)
}

View File

@ -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

View File

@ -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.