From: Martin Möhrmann Date: Fri, 1 Jun 2018 17:43:58 +0000 (+0200) Subject: cmd/compile: fix comment to reference runtime.countrunes X-Git-Tag: go1.11beta1~234 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b280edb89eae1974e3f218726814b03b3558e005;p=gostls13.git cmd/compile: fix comment to reference runtime.countrunes Updates #24923 Change-Id: Ie5a1b54b023381b58df618080f3d742a50d46d8b Reviewed-on: https://go-review.googlesource.com/115836 Reviewed-by: Josh Bleecher Snyder Run-TryBot: Martin Möhrmann TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/compile/internal/gc/walk.go b/src/cmd/compile/internal/gc/walk.go index f42d1e43db..591c8f3bfe 100644 --- a/src/cmd/compile/internal/gc/walk.go +++ b/src/cmd/compile/internal/gc/walk.go @@ -4078,7 +4078,7 @@ func canMergeLoads() bool { } // isRuneCount reports whether n is of the form len([]rune(string)). -// These are optimized into a call to runtime.runecount. +// These are optimized into a call to runtime.countrunes. func isRuneCount(n *Node) bool { return Debug['N'] == 0 && !instrumenting && n.Op == OLEN && n.Left.Op == OSTRARRAYRUNE }