aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/testing/regexp.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/testing/regexp.go')
-rw-r--r--src/pkg/testing/regexp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/testing/regexp.go b/src/pkg/testing/regexp.go
index 6584d47c18..e2bde0b253 100644
--- a/src/pkg/testing/regexp.go
+++ b/src/pkg/testing/regexp.go
@@ -624,7 +624,7 @@ func CompileRegexp(str string) (regexp *Regexp, error string) {
func MustCompile(str string) *Regexp {
regexp, error := CompileRegexp(str)
if error != "" {
- panicln(`regexp: compiling "`, str, `": `, error)
+ panic(`regexp: compiling "` + str + `": ` + error)
}
return regexp
}