mirror of https://github.com/golang/go.git
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:
parent
f611ae1c75
commit
fa5f86281e
|
|
@ -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++
|
||||
|
|
|
|||
Loading…
Reference in New Issue