File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ practice still print their stack trace. The panic tracer's default values is
82
82
err2.SetPanicTracer(os.Stderr) // panic stack tracer's default is stderr
83
83
err2.SetErrorTracer(nil) // error stack tracer's default is nil
84
84
85
- Note, that both panic and error traces are optimized by err2 package. That means
85
+ Note that both panic and error traces are optimized by err2 package. That means
86
86
that the head of the stack trace isn't the panic function, but an actual line
87
87
that caused it. It works for all three categories:
88
88
- normal error values
@@ -112,7 +112,7 @@ And the following flags are supported (="default-value"):
112
112
-err2-trace="nil"
113
113
A name of the stream currently supported stderr, stdout or nil
114
114
115
- Note, that you have called [SetErrorTracer] and others, before you call
115
+ Note that you have called [SetErrorTracer] and others, before you call
116
116
[flag.Parse]. This allows you set the defaults according your app's need and allow
117
117
end-user change them during the runtime.
118
118
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ func Reset(error) error { return nil }
60
60
// fmt.Println("ERROR:", err)
61
61
// }))
62
62
//
63
- // Note, that since Err helper we have other helpers like [Stdout] that allows
63
+ // Note that since Err helper we have other helpers like [Stdout] that allows
64
64
// previous block be written as simple as:
65
65
//
66
66
// defer err2.Catch(err2.Stdout)
You can’t perform that action at this time.
0 commit comments