From 94f661bf3c9d4f5c0238521d594bd1e68bad11b0 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Wed, 31 Aug 2016 13:15:43 -0400 Subject: [PATCH] [ci skip] Some things always go under the radar... --- docs/source/tutorial/all-the-things.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/source/tutorial/all-the-things.rst b/docs/source/tutorial/all-the-things.rst index 3ce46fbc..6e7b9314 100644 --- a/docs/source/tutorial/all-the-things.rst +++ b/docs/source/tutorial/all-the-things.rst @@ -175,7 +175,7 @@ tables ); sol::table abc = lua["abc"]; - sol::state def = lua["def"]; + sol::table def = lua["def"]; sol::table ghi = lua["def"]["ghi"]; int bark1 = def["ghi"]["bark"]; @@ -209,6 +209,8 @@ Make some: .. code-block:: cpp + sol::state lua; + lua["abc"] = lua.create_table_with( 0, 24 ); @@ -320,7 +322,7 @@ The lua code to call these things is: -- need class instance if you don't bind it with the function print(m1(sc)) -- 24.5 - -- does not need class instance: was made with one + -- does not need class instance: was bound to lua with one print(m2()) -- 24.5 -- need class instance if you