aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorguoguangwu <guoguangwu@magic-shield.com>2024-02-27 05:18:10 +0000
committerRobert Griesemer <gri@google.com>2024-02-27 16:21:58 +0000
commitf326b3e2b3761ae4562204a5faee41b4d5211502 (patch)
tree300260d791f33b2f73a66c7ddc1a501f996db08d /src
parentccbc725f2d678255df1bd326fa511a492aa3a0aa (diff)
downloadgo-f326b3e2b3761ae4562204a5faee41b4d5211502.tar.xz
go/types, types2: fix typo in comment
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>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/compile/internal/types2/decl.go2
-rw-r--r--src/go/types/decl.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/types2/decl.go b/src/cmd/compile/internal/types2/decl.go
index fd9a90e1ae..8c3a446ad4 100644
--- a/src/cmd/compile/internal/types2/decl.go
+++ b/src/cmd/compile/internal/types2/decl.go
@@ -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.
}
diff --git a/src/go/types/decl.go b/src/go/types/decl.go
index 3994d1650f..bed066ac90 100644
--- a/src/go/types/decl.go
+++ b/src/go/types/decl.go
@@ -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.
}