File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ var indexError = error(errorString("index out of range"))
37
37
// entire runtime stack for easier debugging.
38
38
39
39
func panicindex () {
40
- if hasprefix (funcname (findfunc (getcallerpc ())), "runtime." ) {
40
+ if hasPrefix (funcname (findfunc (getcallerpc ())), "runtime." ) {
41
41
throw (string (indexError .(errorString )))
42
42
}
43
43
panicCheckMalloc (indexError )
@@ -47,7 +47,7 @@ func panicindex() {
47
47
var sliceError = error (errorString ("slice bounds out of range" ))
48
48
49
49
func panicslice () {
50
- if hasprefix (funcname (findfunc (getcallerpc ())), "runtime." ) {
50
+ if hasPrefix (funcname (findfunc (getcallerpc ())), "runtime." ) {
51
51
throw (string (sliceError .(errorString )))
52
52
}
53
53
panicCheckMalloc (sliceError )
You can’t perform that action at this time.
0 commit comments