mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Fix syntax error in tutorial/variables example code.
Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
parent
e9580bcb1c
commit
7a1f20eaf1
|
@ -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" );
|
||||
|
|
Loading…
Reference in New Issue
Block a user