Skip to content

Commit 7b8930e

Browse files
committed
runtime: fix build, rename a since-renamed hasprefix to hasPrefix
I merged CL 115835 without testing it after a rebase. My bad. Change-Id: I0acc6ed78ea7d718ac2df11d509cfcf4364dfaee Reviewed-on: https://go-review.googlesource.com/130815 Run-TryBot: Brad Fitzpatrick <[email protected]> Reviewed-by: Martin Möhrmann <[email protected]>
1 parent fd7d325 commit 7b8930e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/panic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var indexError = error(errorString("index out of range"))
3737
// entire runtime stack for easier debugging.
3838

3939
func panicindex() {
40-
if hasprefix(funcname(findfunc(getcallerpc())), "runtime.") {
40+
if hasPrefix(funcname(findfunc(getcallerpc())), "runtime.") {
4141
throw(string(indexError.(errorString)))
4242
}
4343
panicCheckMalloc(indexError)
@@ -47,7 +47,7 @@ func panicindex() {
4747
var sliceError = error(errorString("slice bounds out of range"))
4848

4949
func panicslice() {
50-
if hasprefix(funcname(findfunc(getcallerpc())), "runtime.") {
50+
if hasPrefix(funcname(findfunc(getcallerpc())), "runtime.") {
5151
throw(string(sliceError.(errorString)))
5252
}
5353
panicCheckMalloc(sliceError)

0 commit comments

Comments
 (0)