From 497cb7c0c3042d3c6605b46a1bf35b7c3bc8b046 Mon Sep 17 00:00:00 2001 From: Mark Freeman Date: Fri, 30 May 2025 15:44:11 -0400 Subject: [PATCH] cmd/compile/internal/noder: document quirk of string elements Change-Id: Ifc3bf896aaaf7c6ce06a01e3dd43780d203638cf Reviewed-on: https://go-review.googlesource.com/c/go/+/677755 LUCI-TryBot-Result: Go LUCI Auto-Submit: Mark Freeman Reviewed-by: Robert Griesemer --- src/cmd/compile/internal/noder/doc.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cmd/compile/internal/noder/doc.go b/src/cmd/compile/internal/noder/doc.go index cc403c835a..a5d5533168 100644 --- a/src/cmd/compile/internal/noder/doc.go +++ b/src/cmd/compile/internal/noder/doc.go @@ -49,6 +49,9 @@ outside the string section access string values by reference. SectionString = { String } . +Note that despite being an element, a string does not begin with a +reference table. + ## Meta Section The meta section provides fundamental information for a package. It contains exactly two elements — a public root and a private root. -- 2.50.0