From 30691a177527565b9af620e58235899a8e47e3ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82?= Date: Tue, 14 Nov 2023 09:46:36 -0800 Subject: [PATCH] Update `Any` documentation to point at go compiler stack reuse issue See discussion in https://github.com/uber-go/zap/pull/1310/files#r1280107231. https://github.com/golang/go/issues/62077 now exists, so we can link it. --- field.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/field.go b/field.go index c8dd3358a..6743930b8 100644 --- a/field.go +++ b/field.go @@ -460,6 +460,8 @@ func (d dictObject) MarshalLogObject(enc zapcore.ObjectEncoder) error { // - https://github.com/uber-go/zap/pull/1304 // - https://github.com/uber-go/zap/pull/1305 // - https://github.com/uber-go/zap/pull/1308 +// +// See https://github.com/golang/go/issues/62077 for upstream issue. type anyFieldC[T any] func(string, T) Field func (f anyFieldC[T]) Any(key string, val any) Field {