1
0
mirror of https://github.com/golang/go synced 2024-11-19 21:04:43 -07:00

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
This commit is contained in:
Russ Cox 2014-09-01 17:25:26 -04:00
parent f611ae1c75
commit fa5f86281e

View 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++