From: guoguangwu Date: Wed, 24 Jul 2024 06:55:35 +0000 (+0000) Subject: cmd/compile: fix typo in comment X-Git-Tag: go1.24rc1~1410 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c7ea20195a3415668047eebdc488a4af1f629f04;p=gostls13.git cmd/compile: fix typo in comment Change-Id: Ied098312399d2d6557ebf0ee294ca0e71dfa677b GitHub-Last-Rev: 82f914e85756728976646b490223352059c1953a GitHub-Pull-Request: golang/go#68565 Reviewed-on: https://go-review.googlesource.com/c/go/+/600655 Auto-Submit: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor Reviewed-by: Dmitri Shuralyov --- diff --git a/src/cmd/compile/internal/rangefunc/rewrite.go b/src/cmd/compile/internal/rangefunc/rewrite.go index ba2eb8d0fd..3752eb9ecd 100644 --- a/src/cmd/compile/internal/rangefunc/rewrite.go +++ b/src/cmd/compile/internal/rangefunc/rewrite.go @@ -598,7 +598,7 @@ type State int // Rewrite rewrites all the range-over-funcs in the files. // It returns the set of function literals generated from rangefunc loop bodies. -// This allows for rangefunc loop bodies to be distingushed by debuggers. +// This allows for rangefunc loop bodies to be distinguished by debuggers. func Rewrite(pkg *types2.Package, info *types2.Info, files []*syntax.File) map[*syntax.FuncLit]bool { ri := make(map[*syntax.FuncLit]bool) for _, file := range files {