From f326b3e2b3761ae4562204a5faee41b4d5211502 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Tue, 27 Feb 2024 05:18:10 +0000 Subject: [PATCH] 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 Reviewed-by: Robert Griesemer LUCI-TryBot-Result: Go LUCI --- src/cmd/compile/internal/types2/decl.go | 2 +- src/go/types/decl.go | 2 +- 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. }