diff options
| author | Russ Cox <rsc@golang.org> | 2014-09-01 17:25:26 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-09-01 17:25:26 -0400 |
| commit | fa5f86281ef10e5676e6672bed4a7b9e7111afa2 (patch) | |
| tree | 527e3bbec0b3fb22b283a2596ae3f1af79c3a13a /src/pkg/runtime/string.go | |
| parent | f611ae1c75b7696da141e55bf91a0acdcc853bf8 (diff) | |
| download | go-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/runtime/string.go')
| -rw-r--r-- | src/pkg/runtime/string.go | 2 |
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++ |
