From e35b5b25d976efb7c00b871cac452b84193e6179 Mon Sep 17 00:00:00 2001 From: Cherry Mui Date: Mon, 25 Oct 2021 16:48:07 -0400 Subject: [PATCH] cmd/compile: fix typo in comment in CL 358435 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I0d8128668fc7a80b29aabc58dbc9a2929b889ec9 Reviewed-on: https://go-review.googlesource.com/c/go/+/358614 Trust: Cherry Mui Trust: Daniel Martí Reviewed-by: Daniel Martí --- src/cmd/compile/internal/ssa/regalloc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/compile/internal/ssa/regalloc.go b/src/cmd/compile/internal/ssa/regalloc.go index 126973a6e1..91b04e99f4 100644 --- a/src/cmd/compile/internal/ssa/regalloc.go +++ b/src/cmd/compile/internal/ssa/regalloc.go @@ -560,7 +560,7 @@ func isLeaf(f *Func) bool { for _, b := range f.Blocks { for _, v := range b.Values { if v.Op.IsCall() && !v.Op.IsTailCall() { - // tail call is not counted as it does not save retur PC or need a frame + // tail call is not counted as it does not save the return PC or need a frame return false } } -- 2.50.0