From 89ff8dbc5f047ae9957523b07e627891079f7967 Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Wed, 26 Jul 2017 23:42:12 -0700 Subject: [PATCH] Small comment fix --- event.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/event.go b/event.go index 9796f86..290b01d 100644 --- a/event.go +++ b/event.go @@ -159,7 +159,7 @@ func (e *Event) appendObject(obj LogObjectMarshaler) { obj.MarshalZerologObject(e) if pos < len(e.buf) { // As MarshalZerologObject will use event API, the first field will be - // preceded by a coma. If at least one field has been added (buf grew), + // preceded by a comma. If at least one field has been added (buf grew), // we replace this coma by the opening bracket. e.buf[pos] = '{' } else { @@ -197,6 +197,9 @@ func (e *Event) Strs(key string, vals []string) *Event { } // Bytes adds the field key with val as a string to the *Event context. +// +// Runes outside of normal ASCII ranges will be hex-encoded in the resulting +// JSON. func (e *Event) Bytes(key string, val []byte) *Event { if !e.enabled { return e