From ecf9a3404b8faae369ea051b53139cfd0f77f5dc Mon Sep 17 00:00:00 2001 From: ThePhD Date: Sat, 23 Apr 2016 18:30:10 -0400 Subject: [PATCH] I can spell good I swear. --- docs/source/tutorial/all-the-things.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/tutorial/all-the-things.rst b/docs/source/tutorial/all-the-things.rst index add423e5..fece1eb0 100644 --- a/docs/source/tutorial/all-the-things.rst +++ b/docs/source/tutorial/all-the-things.rst @@ -43,10 +43,10 @@ running lua code lua.script_file("path/to/luascript.lua"); // load file without execute - sol::function script1 = state.load_script_file("path/to/luascript.lua"); + sol::load_result script1 = state.load_file("path/to/luascript.lua"); script1(); //execute // load string without execute - sol::function script2 = state.load_script("a = 'test'"); + sol::load_result script2 = state.load("a = 'test'"); script2(); //execute