From ea4176601d50fc3ddb9448fa66d9017a2dfdf6ac Mon Sep 17 00:00:00 2001 From: Marco Melorio Date: Mon, 8 Jul 2019 19:37:19 +0200 Subject: [PATCH] Fix typo in exception documentation --- examples/source/docs/my_panic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/source/docs/my_panic.cpp b/examples/source/docs/my_panic.cpp index 3e696974..aee5714e 100644 --- a/examples/source/docs/my_panic.cpp +++ b/examples/source/docs/my_panic.cpp @@ -14,10 +14,10 @@ inline void my_panic(sol::optional maybe_msg) { int main (int, char*[]) { sol::state lua(sol::c_call); // or, if you already have a lua_State* L - // lua_atpanic( L, sol::c_call, &my_panic> ); + // lua_atpanic( L, sol::c_call ); // or, with state/state_view: // sol::state_view lua(L); - // lua.set_panic( sol::c_call, &my_panic> ); + // lua.set_panic( sol::c_call ); // uncomment the below to see //lua.script("boom_goes.the_dynamite");