From bff2745273034cc135032934bba39a5dd8f322d3 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Tue, 22 Mar 2022 14:35:36 -0700 Subject: [PATCH] Update array_go118.go Co-authored-by: Sung Yoon Whang --- array_go118.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/array_go118.go b/array_go118.go index d680f33c8..c80761d51 100644 --- a/array_go118.go +++ b/array_go118.go @@ -110,7 +110,7 @@ type objectValues[T any, P objectMarshalerPtr[T]] []T func (os objectValues[T, P]) MarshalLogArray(arr zapcore.ArrayEncoder) error { for i := range os { // It is necessary for us to explicitly reference the "P" type. - // We cannot simply pass "&o" to AppendObject because its type + // We cannot simply pass "&os[i]" to AppendObject because its type // is "*T", which the type system does not consider as // implementing ObjectMarshaler. // Only the type "P" satisfies ObjectMarshaler, which we have