Skip to content

Commit

Permalink
Update Inline comment
Browse files Browse the repository at this point in the history
  • Loading branch information
prashantv committed Mar 19, 2021
1 parent cdfbaec commit f17ba22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions field.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,9 @@ func Object(key string, val zapcore.ObjectMarshaler) Field {
return Field{Key: key, Type: zapcore.ObjectMarshalerType, Interface: val}
}

// Inline is similar to Object, but does not nest the object under a field
// name, but adds the fields to the current namespace inline.
// Inline constructs a Field that is similar to Object, but it
// will add the elements of the provided ObjectMarshaler to the
// current namespace.
func Inline(val zapcore.ObjectMarshaler) Field {
return zapcore.Field{
Type: zapcore.InlineMarshalerType,
Expand Down

0 comments on commit f17ba22

Please sign in to comment.