From f17ba226437d913230a11ebffbb424f606b8cf69 Mon Sep 17 00:00:00 2001 From: Prashant Varanasi Date: Fri, 19 Mar 2021 16:23:37 -0700 Subject: [PATCH] Update Inline comment --- field.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/field.go b/field.go index cc74deb87..bbb745db5 100644 --- a/field.go +++ b/field.go @@ -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,