From 74119689619c24f5871056d13d07d56f69ad5f60 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 30 Mar 2010 10:34:57 -0700 Subject: single argument panic note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041 --- src/pkg/bytes/bytes_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pkg/bytes/bytes_test.go') diff --git a/src/pkg/bytes/bytes_test.go b/src/pkg/bytes/bytes_test.go index efec1eb8b..df55ce3cc 100644 --- a/src/pkg/bytes/bytes_test.go +++ b/src/pkg/bytes/bytes_test.go @@ -188,7 +188,8 @@ func bmIndex(b *testing.B, index func([]byte, byte) int, n int) { for i := 0; i < b.N; i++ { j := index(buf, 'x') if j != n-1 { - panic("bad index", j) + println("bad index", j) + panic("bad index") } } buf[n-1] = '0' -- cgit v1.2.3