Fix typo in exception documentation

This commit is contained in:
Marco Melorio 2019-07-08 19:37:19 +02:00 committed by The Phantom Derpstorm
parent c4c2f18eea
commit ea4176601d

View File

@ -14,10 +14,10 @@ inline void my_panic(sol::optional<std::string> maybe_msg) {
int main (int, char*[]) { int main (int, char*[]) {
sol::state lua(sol::c_call<decltype(&my_panic), &my_panic>); sol::state lua(sol::c_call<decltype(&my_panic), &my_panic>);
// or, if you already have a lua_State* L // or, if you already have a lua_State* L
// lua_atpanic( L, sol::c_call<decltype(&my_panic)>, &my_panic> ); // lua_atpanic( L, sol::c_call<decltype(&my_panic), &my_panic> );
// or, with state/state_view: // or, with state/state_view:
// sol::state_view lua(L); // sol::state_view lua(L);
// lua.set_panic( sol::c_call<decltype(&my_panic)>, &my_panic> ); // lua.set_panic( sol::c_call<decltype(&my_panic), &my_panic> );
// uncomment the below to see // uncomment the below to see
//lua.script("boom_goes.the_dynamite"); //lua.script("boom_goes.the_dynamite");