]> Cypherpunks repositories - gostls13.git/commitdiff
go/types: fix spelling mistake in comment
authorKevin Burke <kev@inburke.com>
Wed, 24 Jan 2018 06:19:34 +0000 (22:19 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 24 Jan 2018 14:37:29 +0000 (14:37 +0000)
Change-Id: If8609dd7c4bdc261056804759ec254f8af0156df
Reviewed-on: https://go-review.googlesource.com/89417
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/go/types/stmt.go

index ab320088b074241184dc9edbef63262b560d7321..5221bcc7c1288d3e33552884900b286e572aba20 100644 (file)
@@ -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
                }