Skip to content

Commit

Permalink
Update array_go118.go
Browse files Browse the repository at this point in the history
Co-authored-by: Sung Yoon Whang <sungyoon@uber.com>
  • Loading branch information
abhinav and sywhang committed Mar 22, 2022
1 parent f9edb80 commit bff2745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion array_go118.go
Expand Up @@ -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
Expand Down

0 comments on commit bff2745

Please sign in to comment.