From: Cherry Mui Date: Mon, 25 Oct 2021 20:48:07 +0000 (-0400) Subject: cmd/compile: fix typo in comment in CL 358435 X-Git-Tag: go1.18beta1~768 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e35b5b25d976efb7c00b871cac452b84193e6179;p=gostls13.git cmd/compile: fix typo in comment in CL 358435 Change-Id: I0d8128668fc7a80b29aabc58dbc9a2929b889ec9 Reviewed-on: https://go-review.googlesource.com/c/go/+/358614 Trust: Cherry Mui Trust: Daniel Martí Reviewed-by: Daniel Martí --- 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 } }