aboutsummaryrefslogtreecommitdiff
path: root/src/pkg
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-01 17:25:26 -0400
committerRuss Cox <rsc@golang.org>2014-09-01 17:25:26 -0400
commitfa5f86281ef10e5676e6672bed4a7b9e7111afa2 (patch)
tree527e3bbec0b3fb22b283a2596ae3f1af79c3a13a /src/pkg
parentf611ae1c75b7696da141e55bf91a0acdcc853bf8 (diff)
downloadgo-fa5f86281ef10e5676e6672bed4a7b9e7111afa2.tar.xz
runtime: change concatstring panic to gothrow
It was a throw originally; it was converted incorrectly. LGTM=dave R=khr, dave CC=golang-codereviews https://golang.org/cl/139000043
Diffstat (limited to 'src/pkg')
-rw-r--r--src/pkg/runtime/string.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/string.go b/src/pkg/runtime/string.go
index 72b732f844..e9ea926dff 100644
--- a/src/pkg/runtime/string.go
+++ b/src/pkg/runtime/string.go
@@ -18,7 +18,7 @@ func concatstrings(a []string) string {
continue
}
if l+n < l {
- panic("string concatenation too long")
+ gothrow("string concatenation too long")
}
l += n
count++