compiler,runtime: make panic functions camelCase

Rename panic functions to be runtime.nilPanic, runtime.lookupPanic, and
runtime.slicePanic.
This commit is contained in:
Ayke van Laethem
2019-05-24 15:00:40 +02:00
committed by Ayke
parent 191a076956
commit 3313decb68
3 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -36,16 +36,16 @@ func isnil(ptr *uint8) bool {
}
// Panic when trying to dereference a nil pointer.
func nilpanic() {
func nilPanic() {
runtimePanic("nil pointer dereference")
}
// Panic when trying to acces an array or slice out of bounds.
func lookuppanic() {
func lookupPanic() {
runtimePanic("index out of range")
}
// Panic when trying to slice a slice out of bounds.
func slicepanic() {
func slicePanic() {
runtimePanic("slice out of range")
}