From 591f3d00e95dd2d13f445e91c8e18fff408ee054 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Thu, 17 Nov 2016 23:01:14 +0300 Subject: [PATCH] Fix example --- example/throwing_st.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/throwing_st.cpp b/example/throwing_st.cpp index 3c23e07..30c982a 100644 --- a/example/throwing_st.cpp +++ b/example/throwing_st.cpp @@ -50,8 +50,8 @@ BOOST_NOINLINE void oops(int i) { //[getting_started_throwing_with_trace if (i >= 4) throw with_trace("'i' must be less than 4 in oops()"); - if (i == 0) - throw with_trace("'i' must not be zero in oops()"); + if (i <= 0) + throw with_trace("'i' must not be greater than zero in oops()"); //] foo(i); }