From 56c71502b3e2333f0b0349508b01ae0915dcb123 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Thu, 4 Jul 2019 14:48:10 -0400 Subject: [PATCH] I am not very smart. --- examples/source/tutorials/erase_demo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/source/tutorials/erase_demo.cpp b/examples/source/tutorials/erase_demo.cpp index 560d322b..3621a72b 100644 --- a/examples/source/tutorials/erase_demo.cpp +++ b/examples/source/tutorials/erase_demo.cpp @@ -10,10 +10,10 @@ int main() { sol::optional x = lua["bark"]; // x will have a value if (x) { - return -1; + std::cout << "x has no value, as expected" << std::endl; } else { - std::cout << "x has no value, as expected" << std::endl; + return -1; } lua["bark"] = sol::lua_nil;