]> Cypherpunks repositories - gostls13.git/commitdiff
go/types, types2: fix typo in comment
authorguoguangwu <guoguangwu@magic-shield.com>
Tue, 27 Feb 2024 05:18:10 +0000 (05:18 +0000)
committerRobert Griesemer <gri@google.com>
Tue, 27 Feb 2024 16:21:58 +0000 (16:21 +0000)
Change-Id: I410c5fdd9fa3aa7ce5eb1d688621c7684f03a6f9
GitHub-Last-Rev: c3f53de27fb8602b500180242e0be274dc242f8d
GitHub-Pull-Request: golang/go#65950
Reviewed-on: https://go-review.googlesource.com/c/go/+/566858
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/cmd/compile/internal/types2/decl.go
src/go/types/decl.go

index fd9a90e1ae3467159175b2df38ad040cc95321d2..8c3a446ad4688ee54ad90c5d9106e7f4b8504e58 100644 (file)
@@ -431,7 +431,7 @@ func (check *Checker) varDecl(obj *Var, lhs []*Var, typ, init syntax.Expr) {
                // if any, would not be checked.
                //
                // TODO(gri) If we have no init expr, we should distribute
-               // a given type otherwise we need to re-evalate the type
+               // a given type otherwise we need to re-evaluate the type
                // expr for each lhs variable, leading to duplicate work.
        }
 
index 3994d1650f6289aad0da88de06dc4f0cc5027491..bed066ac901687d3ac8d6dbe34f5206fd015bff6 100644 (file)
@@ -502,7 +502,7 @@ func (check *Checker) varDecl(obj *Var, lhs []*Var, typ, init ast.Expr) {
                // if any, would not be checked.
                //
                // TODO(gri) If we have no init expr, we should distribute
-               // a given type otherwise we need to re-evalate the type
+               // a given type otherwise we need to re-evaluate the type
                // expr for each lhs variable, leading to duplicate work.
        }