summaryrefslogtreecommitdiff
path: root/src/pkg/regexp
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2010-03-24 16:46:53 -0700
committerRob Pike <r@golang.org>2010-03-24 16:46:53 -0700
commit420d470e6ef507a6183e49c42f04051349803487 (patch)
tree19bab8994a6a628a1309f01d31a9809d6f6ac5be /src/pkg/regexp
parente2854b2f5f4789b20941f5b35082d9fa33c152e3 (diff)
downloadgolang-420d470e6ef507a6183e49c42f04051349803487.tar.gz
delete all uses of panicln by rewriting them using panic or,
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
Diffstat (limited to 'src/pkg/regexp')
-rw-r--r--src/pkg/regexp/regexp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/regexp/regexp.go b/src/pkg/regexp/regexp.go
index ecef27178..bf9a4bb40 100644
--- a/src/pkg/regexp/regexp.go
+++ b/src/pkg/regexp/regexp.go
@@ -673,7 +673,7 @@ func Compile(str string) (regexp *Regexp, error os.Error) {
func MustCompile(str string) *Regexp {
regexp, error := Compile(str)
if error != nil {
- panicln(`regexp: compiling "`, str, `": `, error.String())
+ panic(`regexp: compiling "` + str + `": ` + error.String())
}
return regexp
}