summaryrefslogtreecommitdiff
path: root/Examples/lua/embed3
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2022-02-26 18:36:12 +1300
committerOlly Betts <olly@survex.com>2022-02-27 18:15:46 +1300
commitb127e11f1e58f4948d0e75667cb797e6f5a797a0 (patch)
tree6f9c7f4862f28656f563fa40f7fc114bd83e8995 /Examples/lua/embed3
parentb5544a181276a3d258cea6deaa6ff875d1e580fc (diff)
downloadswig-b127e11f1e58f4948d0e75667cb797e6f5a797a0.tar.gz
Fix typos in docs and comments
Diffstat (limited to 'Examples/lua/embed3')
-rw-r--r--Examples/lua/embed3/embed3.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Examples/lua/embed3/embed3.cpp b/Examples/lua/embed3/embed3.cpp
index 9be49add3..c3c5d380c 100644
--- a/Examples/lua/embed3/embed3.cpp
+++ b/Examples/lua/embed3/embed3.cpp
@@ -61,7 +61,7 @@ bool push_pointer(lua_State*L, void* ptr, const char* type_name, int owned = 0)
/* This is an example of how to call the Lua function
void onEvent(Event e)
- its very tedious, but gives you an idea of the issues involed.
+ it's very tedious, but gives you an idea of the issues involved.
*/
int call_onEvent(lua_State *L, Event e) {
int top;
@@ -105,7 +105,7 @@ int main(int argc, char* argv[]) {
/* this code will pass a pointer into lua, but C++ still owns the object
this is a little tedious, to do, but let's do it
we need to pass the pointer (obviously), the type name
- and a flag which states if Lua should delete the pointer once its finished with it
+ and a flag which states if Lua should delete the pointer once it's finished with it
The type name is a class name string which is registered with SWIG
(normally, just look in the wrapper file to get this)
in this case we don't want Lua to delete the pointer so the ownership flag is 0