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); }