aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/string.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/string.go')
-rw-r--r--src/runtime/string.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/string.go b/src/runtime/string.go
index e01bc3b846..78c4cb3e5e 100644
--- a/src/runtime/string.go
+++ b/src/runtime/string.go
@@ -18,7 +18,7 @@ func concatstrings(a []string) string {
continue
}
if l+n < l {
- gothrow("string concatenation too long")
+ throw("string concatenation too long")
}
l += n
count++
@@ -222,7 +222,7 @@ func rawbyteslice(size int) (b []byte) {
// rawruneslice allocates a new rune slice. The rune slice is not zeroed.
func rawruneslice(size int) (b []rune) {
if uintptr(size) > _MaxMem/4 {
- gothrow("out of memory")
+ throw("out of memory")
}
mem := goroundupsize(uintptr(size) * 4)
p := mallocgc(mem, nil, flagNoScan|flagNoZero)