Skip to content

Commit 6aca04a

Browse files
ianlancetaylorgopherbot
authored andcommitted
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 <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>
1 parent 235b4e7 commit 6aca04a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/reflect/type.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,10 @@ const Ptr = Pointer
314314

315315
// uncommonType is present only for defined types or types with methods
316316
// (if T is a defined type, the uncommonTypes for T and *T have methods).
317-
// Using a pointer to this struct reduces the overall size required
317+
// When present, the uncommonType struct immediately follows the
318+
// abi.Type struct in memory.
319+
// The abi.TFlagUncommon indicates the presence of uncommonType.
320+
// Using an optional struct reduces the overall size required
318321
// to describe a non-defined type with no methods.
319322
type uncommonType = abi.UncommonType
320323

0 commit comments

Comments
 (0)