From 6aca04a73ac3ec20c39e4abe47a27370b286fc76 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 24 Oct 2025 21:41:52 -0700 Subject: [PATCH] reflect: correct internal docs for uncommonType This updates the doc to reflect the change in CL 19790 from 2016. Change-Id: I1017babf6660aa3b4929755e2eccbe3168b7860c Reviewed-on: https://go-review.googlesource.com/c/go/+/714880 Reviewed-by: Michael Knyszek Reviewed-by: David Chase LUCI-TryBot-Result: Go LUCI Auto-Submit: Ian Lance Taylor --- src/reflect/type.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/reflect/type.go b/src/reflect/type.go index fc6edb1e10..9b8726824e 100644 --- a/src/reflect/type.go +++ b/src/reflect/type.go @@ -314,7 +314,10 @@ const Ptr = Pointer // uncommonType is present only for defined types or types with methods // (if T is a defined type, the uncommonTypes for T and *T have methods). -// Using a pointer to this struct reduces the overall size required +// When present, the uncommonType struct immediately follows the +// abi.Type struct in memory. +// The abi.TFlagUncommon indicates the presence of uncommonType. +// Using an optional struct reduces the overall size required // to describe a non-defined type with no methods. type uncommonType = abi.UncommonType -- 2.52.0