Commit 236abdb4 authored by Kevin Burke's avatar Kevin Burke Committed by Ian Lance Taylor

go/types: fix spelling mistake in comment

Change-Id: If8609dd7c4bdc261056804759ec254f8af0156df
Reviewed-on: https://go-review.googlesource.com/89417Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent e89d08e0
......@@ -732,7 +732,7 @@ func (check *Checker) stmt(ctxt stmtContext, s ast.Stmt) {
if s, _ := s.Post.(*ast.AssignStmt); s != nil && s.Tok == token.DEFINE {
check.softErrorf(s.Pos(), "cannot declare in post statement")
// Don't call useLHS here because we want to use the lhs in
// this errroneous statement so that we don't get errors about
// this erroneous statement so that we don't get errors about
// these lhs variables being declared but not used.
check.use(s.Lhs...) // avoid follow-up errors
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment