Skip to content

Commit

Permalink
log: fix typos in comments (ethereum#21118)
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan committed Nov 13, 2024
1 parent 5662773 commit 369b684
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion log/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ This will output a log line that includes the path context that is attached to t
Handlers
The Handler interface defines where log lines are printed to and how they are formated. Handler is a
The Handler interface defines where log lines are printed to and how they are formatted. Handler is a
single interface that is inspired by net/http's handler interface:
type Handler interface {
Expand Down
2 changes: 1 addition & 1 deletion log/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type TerminalStringer interface {
// a terminal with color-coded level output and terser human friendly timestamp.
// This format should only be used for interactive programs or while developing.
//
// [LEVEL] [TIME] MESAGE key=value key=value ...
// [LEVEL] [TIME] MESSAGE key=value key=value ...
//
// Example:
//
Expand Down
2 changes: 1 addition & 1 deletion log/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func formatCall(format string, c stack.Call) string {
}

// CallerStackHandler returns a Handler that adds a stack trace to the context
// with key "stack". The stack trace is formated as a space separated list of
// with key "stack". The stack trace is formatted as a space separated list of
// call sites inside matching []'s. The most recent call site is listed first.
// Each call site is formatted according to format. See the documentation of
// package github.com/go-stack/stack for the list of supported formats.
Expand Down

0 comments on commit 369b684

Please sign in to comment.