Make sure docs compile

This commit is contained in:
ThePhD 2017-01-14 07:45:45 -05:00
parent 30feacb04e
commit 039331e163

View File

@ -223,12 +223,12 @@ If you're going deep, be safe:
sol::optional<int> will_not_error = lua["abc"]["DOESNOTEXIST"]["ghi"]; sol::optional<int> will_not_error = lua["abc"]["DOESNOTEXIST"]["ghi"];
// will_not_error == sol::nullopt // will_not_error == sol::nullopt
int will_not_error2 = lua["abc"]["def"]["ghi"]["jklm"].get_or<int>(25); int also_will_not_error = lua["abc"]["def"]["ghi"]["jklm"].get_or(25);
// is 25 // is 25
// if you don't go safe, // if you don't go safe,
// will throw (or do at_panic if no exceptions) // will throw (or do at_panic if no exceptions)
int aaaahhh = lua["abc"]["hope_u_liek_crash"]; int aaaahhh = lua["boom"]["the_dynamite"];
make tables make tables