From fa5f86281ef10e5676e6672bed4a7b9e7111afa2 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 1 Sep 2014 17:25:26 -0400 Subject: [PATCH] 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 --- src/pkg/runtime/string.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++ -- 2.48.1