From 420d470e6ef507a6183e49c42f04051349803487 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Wed, 24 Mar 2010 16:46:53 -0700 Subject: 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 --- src/pkg/regexp/regexp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/regexp/regexp.go') 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 } -- cgit v1.2.3