Skip to content

Commit

Permalink
cmd/compile: fix comment to reference runtime.countrunes
Browse files Browse the repository at this point in the history
Updates golang#24923

Change-Id: Ie5a1b54b023381b58df618080f3d742a50d46d8b
Reviewed-on: https://go-review.googlesource.com/115836
Reviewed-by: Josh Bleecher Snyder <[email protected]>
Run-TryBot: Martin Möhrmann <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
  • Loading branch information
martisch authored and bradfitz committed Jun 1, 2018
1 parent 6cfeedb commit b280edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/compile/internal/gc/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit b280edb

Please sign in to comment.