diff options
author | Kevin Burke <kev@inburke.com> | 2018-01-23 22:19:34 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2018-01-24 14:37:29 +0000 |
commit | 236abdb46bc13c3e3afe019950d3c3db126190c4 (patch) | |
tree | d70f6a177b1892c4abf6274c9576d63ba09cbcbf | |
parent | e89d08e02180b72b541bcda0def3caf754704e25 (diff) | |
download | go-236abdb46bc13c3e3afe019950d3c3db126190c4.tar.gz go-236abdb46bc13c3e3afe019950d3c3db126190c4.zip |
go/types: fix spelling mistake in comment
Change-Id: If8609dd7c4bdc261056804759ec254f8af0156df
Reviewed-on: https://go-review.googlesource.com/89417
Reviewed-by: Ian Lance Taylor <iant@golang.org>
-rw-r--r-- | src/go/types/stmt.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/types/stmt.go b/src/go/types/stmt.go index ab320088b0..5221bcc7c1 100644 --- a/src/go/types/stmt.go +++ b/src/go/types/stmt.go @@ -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 } |