Skip to content

Commit

Permalink
Small comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rs committed Jul 27, 2017
1 parent 614d88b commit 89ff8db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion event.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 89ff8db

Please sign in to comment.