]> Cypherpunks.ru repositories - gostls13.git/commitdiff
cmd/compile/internal/ir: fix doc
authorPark Zhou <ideapark@139.com>
Tue, 14 Nov 2023 08:17:05 +0000 (16:17 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 15 Nov 2023 03:59:47 +0000 (03:59 +0000)
Signed-off-by: Park Zhou <ideapark@139.com>
Change-Id: I5e42ca6c714b9c1b50241c9d738db366bf1ca1fa
Reviewed-on: https://go-review.googlesource.com/c/go/+/542175
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/ir/func.go

index cea7c446d4ad1827fc514b9af53141d6211522b3..ca2a2d50080d35d7a4c3b1207c7ef7dff7987223 100644 (file)
@@ -54,7 +54,7 @@ func (n *miniExpr) Init() Nodes           { return n.init }
 func (n *miniExpr) PtrInit() *Nodes       { return &n.init }
 func (n *miniExpr) SetInit(x Nodes)       { n.init = x }
 
-// An AddStringExpr is a string concatenation Expr[0] + Exprs[1] + ... + Expr[len(Expr)-1].
+// An AddStringExpr is a string concatenation List[0] + List[1] + ... + List[len(List)-1].
 type AddStringExpr struct {
        miniExpr
        List     Nodes
index c28761255f3839a42b74a66350343a1da975e96e..303c5e4fd0e53daea006dc7cfd60216cfc6675df 100644 (file)
@@ -126,7 +126,7 @@ type Func struct {
        NumDefers  int32 // number of defer calls in the function
        NumReturns int32 // number of explicit returns in the function
 
-       // nwbrCalls records the LSyms of functions called by this
+       // NWBRCalls records the LSyms of functions called by this
        // function for go:nowritebarrierrec analysis. Only filled in
        // if nowritebarrierrecCheck != nil.
        NWBRCalls *[]SymAndPos