]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: fix typo in comment
authorguoguangwu <guoguangwug@gmail.com>
Wed, 24 Jul 2024 06:55:35 +0000 (06:55 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 24 Jul 2024 15:39:28 +0000 (15:39 +0000)
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 <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/compile/internal/rangefunc/rewrite.go

index ba2eb8d0fdcf757f7d169437f0d63db64a3bec94..3752eb9ecdd13e3fe9b377cce107f9da8a2643c9 100644 (file)
@@ -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 {