diff options
| author | Rob Pike <r@golang.org> | 2010-03-24 16:46:53 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2010-03-24 16:46:53 -0700 |
| commit | 420d470e6ef507a6183e49c42f04051349803487 (patch) | |
| tree | 19bab8994a6a628a1309f01d31a9809d6f6ac5be /src/pkg/testing/regexp.go | |
| parent | e2854b2f5f4789b20941f5b35082d9fa33c152e3 (diff) | |
| download | golang-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/testing/regexp.go')
| -rw-r--r-- | src/pkg/testing/regexp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/testing/regexp.go b/src/pkg/testing/regexp.go index 6584d47c1..e2bde0b25 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 } |
