]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: change concatstring panic to gothrow
authorRuss Cox <rsc@golang.org>
Mon, 1 Sep 2014 21:25:26 +0000 (17:25 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 1 Sep 2014 21:25:26 +0000 (17:25 -0400)
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

index 72b732f8445a89a47fc9b252c96387f3b6a19217..e9ea926dfffa1ca6a37e7c621ebe0a9196c01724 100644 (file)
@@ -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++