From 7171007732a207266206269bfe6d4ae5e292c352 Mon Sep 17 00:00:00 2001 From: Steven Degutis Date: Thu, 29 Mar 2012 07:20:11 -0500 Subject: [PATCH] make it more clear we're moving into panic mode --- about_panics.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/about_panics.go b/about_panics.go index 94efdfe..55088ef 100644 --- a/about_panics.go +++ b/about_panics.go @@ -4,7 +4,11 @@ func divideFourBy(i int) int { return 4 / i } +const __divisor__ = 0 + func aboutPanics() { - n := divideFourBy(0) + assert(__delete_me__) // panics are exceptional errors at runtime + + n := divideFourBy(__divisor__) assert(n == 2) // panics are exceptional errors at runtime }