Fix syntax error in tutorial/variables example code.

Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
aixxe 2017-10-22 14:44:16 +01:00 committed by The Phantom Derpstorm
parent e9580bcb1c
commit 7a1f20eaf1

View File

@ -53,7 +53,7 @@ You can interact with the variables like this:
// can also get it using the "get" member function
// auto replaces the unqualified type name
auto resolution = config.get<sol::table>( "resolution );
auto resolution = config.get<sol::table>( "resolution" );
// table and state can have multiple things pulled out of it too
std::pair<int, int> xyresolution = resolution.get<int, int>( "x", "y" );