]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: fix comment to reference runtime.countrunes
authorMartin Möhrmann <moehrmann@google.com>
Fri, 1 Jun 2018 17:43:58 +0000 (19:43 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 1 Jun 2018 19:18:43 +0000 (19:18 +0000)
Updates #24923

Change-Id: Ie5a1b54b023381b58df618080f3d742a50d46d8b
Reviewed-on: https://go-review.googlesource.com/115836
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/compile/internal/gc/walk.go

index f42d1e43db6eaffd2a74406dbaf87d9714e53895..591c8f3bfecbce13fd422a8bea89581de546d2af 100644 (file)
@@ -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
 }