]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/typecheck: update doc for the 1.18 export format
authorRobert Findley <rfindley@google.com>
Tue, 26 Oct 2021 13:47:18 +0000 (09:47 -0400)
committerRobert Findley <rfindley@google.com>
Tue, 26 Oct 2021 15:20:53 +0000 (15:20 +0000)
Update the documentation in iexport.go to use the word 'Constraint'
rather than 'Bound', and to account for recent changes to the export
format.

Change-Id: I83fbcd336d5f865af804bc8bef4f5d997cd9f325
Reviewed-on: https://go-review.googlesource.com/c/go/+/358547
Trust: Robert Findley <rfindley@google.com>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/compile/internal/typecheck/iexport.go

index 6057000a5da4489ceccbb73572dc30b05bdb2988..f685851e40c370031339827b04b3cea345d341e9 100644 (file)
 //
 //     // "Automatic" declaration of each typeparam
 //     type TypeParam struct {
-//         Tag  byte // 'P'
-//         Pos  Pos
-//         Bound typeOff
+//         Tag        byte // 'P'
+//         Pos        Pos
+//         Implicit   bool
+//         Constraint typeOff
 //     }
 //
 // typeOff means a uvarint that either indicates a predeclared type,
 // types list (see predeclared in bexport.go for order). Otherwise,
 // subtracting predeclReserved yields the offset of a type descriptor.
 //
-// Value means a type and type-specific value. See
+// Value means a type, kind, and type-specific value. See
 // (*exportWriter).value for details.
 //
 //