From 82f914e85756728976646b490223352059c1953a Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Wed, 24 Jul 2024 14:50:36 +0800 Subject: [PATCH] cmd/compile: fix typo in comment Signed-off-by: guoguangwu --- src/cmd/compile/internal/rangefunc/rewrite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/compile/internal/rangefunc/rewrite.go b/src/cmd/compile/internal/rangefunc/rewrite.go index ba2eb8d0fdc..3752eb9ecdd 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 {