]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: correct internal docs for uncommonType
authorIan Lance Taylor <iant@golang.org>
Sat, 25 Oct 2025 04:41:52 +0000 (21:41 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 30 Oct 2025 16:47:47 +0000 (09:47 -0700)
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 <mknyszek@google.com>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>

src/reflect/type.go

index fc6edb1e1067514d44ce326dc8c0edf40b556c56..9b8726824e6d9cf0f2dc5ac7454b651e1142aecc 100644 (file)
@@ -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