1
0
mirror of https://github.com/golang/go synced 2024-11-17 13:44:43 -07:00

cmd/compile: fix spelling mistake

Change-Id: Id900636ee58a39aaa3dc1c601cb83706d3e2fbe8
Reviewed-on: https://go-review.googlesource.com/67190
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Kevin Burke 2017-09-29 10:01:56 -07:00 committed by Dave Cheney
parent 1b873f5fd2
commit 33c06b1d46

View File

@ -168,7 +168,7 @@ func nilcheckelim2(f *Func) {
// input pointer is nil. Remove nil checks on those pointers, as the
// faulting instruction effectively does the nil check for free.
unnecessary.clear()
// Optimization: keep track of removed nilckeck with smallest index
// Optimization: keep track of removed nilcheck with smallest index
firstToRemove := len(b.Values)
for i := len(b.Values) - 1; i >= 0; i-- {
v := b.Values[i]