Skip to content

Commit 97a4398

Browse files
committed
47781-parameterized-go-ast.md: replace 'TParams' with 'TypeParams'
As discussed in #47781, it is clearer to spell out 'Type'. Updates #47781 Change-Id: Ifbf76649cf89db55183e8f94da373349ce14c5d3 Reviewed-on: https://go-review.googlesource.com/c/proposal/+/348379 Reviewed-by: Robert Findley <[email protected]>
1 parent 79836f7 commit 97a4398

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

design/47781-parameterized-go-ast.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ The sections below describe new types and functions to be added, as well as thei
2727
type TypeSpec struct {
2828
// ...existing fields
2929

30-
TParams *FieldList
30+
TypeParams *FieldList
3131
}
3232

3333
type FuncType struct {
3434
// ...existing fields
3535

36-
TParams *FieldList
36+
TypeParams *FieldList
3737
}
3838
```
3939

40-
To represent type parameters in type and function declarations, both `ast.TypeSpec` and `ast.FuncType` gain a new `TParams *FieldList` field, which will be nil in the case of non-parameterized types and functions.
40+
To represent type parameters in type and function declarations, both `ast.TypeSpec` and `ast.FuncType` gain a new `TypeParams *FieldList` field, which will be nil in the case of non-parameterized types and functions.
4141

4242
### For type and function instantiation
4343

0 commit comments

Comments
 (0)