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 --- test/fixedbugs/bug246.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/fixedbugs/bug246.go') diff --git a/test/fixedbugs/bug246.go b/test/fixedbugs/bug246.go index 1c4dc0d53..12041eb1d 100644 --- a/test/fixedbugs/bug246.go +++ b/test/fixedbugs/bug246.go @@ -15,8 +15,9 @@ func main() { // fails x2 := (*int)(unsafe.Pointer(uintptr(0x234))) - + if x1 != x2 { - panicln("mismatch", x1, x2) + println("mismatch", x1, x2) + panic("fail") } } -- cgit v1.2.3