fix the typo in 'guarantee' (#203)
This commit is contained in:
parent
d2a97b366b
commit
cb951d468e
4
log.go
4
log.go
|
@ -179,7 +179,7 @@ func ParseLevel(levelStr string) (Level, error) {
|
||||||
|
|
||||||
// A Logger represents an active logging object that generates lines
|
// A Logger represents an active logging object that generates lines
|
||||||
// of JSON output to an io.Writer. Each logging operation makes a single
|
// of JSON output to an io.Writer. Each logging operation makes a single
|
||||||
// call to the Writer's Write method. There is no guaranty on access
|
// call to the Writer's Write method. There is no guarantee on access
|
||||||
// serialization to the Writer. If your Writer is not thread safe,
|
// serialization to the Writer. If your Writer is not thread safe,
|
||||||
// you may consider a sync wrapper.
|
// you may consider a sync wrapper.
|
||||||
type Logger struct {
|
type Logger struct {
|
||||||
|
@ -195,7 +195,7 @@ type Logger struct {
|
||||||
// one.
|
// one.
|
||||||
//
|
//
|
||||||
// Each logging operation makes a single call to the Writer's Write method. There is no
|
// Each logging operation makes a single call to the Writer's Write method. There is no
|
||||||
// guaranty on access serialization to the Writer. If your Writer is not thread safe,
|
// guarantee on access serialization to the Writer. If your Writer is not thread safe,
|
||||||
// you may consider using sync wrapper.
|
// you may consider using sync wrapper.
|
||||||
func New(w io.Writer) Logger {
|
func New(w io.Writer) Logger {
|
||||||
if w == nil {
|
if w == nil {
|
||||||
|
|
Loading…
Reference in New Issue