diff options
author | luz.paz <luzpaz@users.noreply.github.com> | 2018-05-14 11:00:52 -0400 |
---|---|---|
committer | luz paz <luzpaz@users.noreply.github.com> | 2018-05-17 10:04:23 -0400 |
commit | 60dfa31a67601f25a3ca171ae7d2503a46e0ec03 (patch) | |
tree | dc18e5f0bbd4b97bd3b562149408fa8212b0f598 /Examples/lua | |
parent | 3eb41c9beb4b420bc58b9c2b97316f35dc3be7be (diff) | |
download | swig-60dfa31a67601f25a3ca171ae7d2503a46e0ec03.tar.gz |
Misc. typos
found via `codespell` and `grep`
Diffstat (limited to 'Examples/lua')
-rw-r--r-- | Examples/lua/arrays/runme.lua | 2 | ||||
-rw-r--r-- | Examples/lua/class/runme.lua | 2 | ||||
-rw-r--r-- | Examples/lua/constants/runme.lua | 2 | ||||
-rw-r--r-- | Examples/lua/dual/dual.cpp | 2 | ||||
-rw-r--r-- | Examples/lua/exception/runme.lua | 4 | ||||
-rw-r--r-- | Examples/lua/funcptr3/runme.lua | 2 | ||||
-rw-r--r-- | Examples/lua/functest/runme.lua | 2 | ||||
-rw-r--r-- | Examples/lua/functor/runme.lua | 2 | ||||
-rw-r--r-- | Examples/lua/import/runme.lua | 2 | ||||
-rw-r--r-- | Examples/lua/nspace/runme.lua | 2 | ||||
-rw-r--r-- | Examples/lua/owner/runme.lua | 2 | ||||
-rw-r--r-- | Examples/lua/pointer/runme.lua | 2 | ||||
-rw-r--r-- | Examples/lua/simple/runme.lua | 2 | ||||
-rw-r--r-- | Examples/lua/variables/runme.lua | 8 |
14 files changed, 18 insertions, 18 deletions
diff --git a/Examples/lua/arrays/runme.lua b/Examples/lua/arrays/runme.lua index d0aa99813..daba2267f 100644 --- a/Examples/lua/arrays/runme.lua +++ b/Examples/lua/arrays/runme.lua @@ -1,6 +1,6 @@ ---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then - -- lua5.0 doesnt have a nice way to do this + -- lua5.0 doesn't have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else diff --git a/Examples/lua/class/runme.lua b/Examples/lua/class/runme.lua index 5d140defe..50ac35d6d 100644 --- a/Examples/lua/class/runme.lua +++ b/Examples/lua/class/runme.lua @@ -5,7 +5,7 @@ ---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then - -- lua5.0 doesnt have a nice way to do this + -- lua5.0 doesn't have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else diff --git a/Examples/lua/constants/runme.lua b/Examples/lua/constants/runme.lua index 751e7d623..ad6bd45d2 100644 --- a/Examples/lua/constants/runme.lua +++ b/Examples/lua/constants/runme.lua @@ -2,7 +2,7 @@ ---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then - -- lua5.0 doesnt have a nice way to do this + -- lua5.0 doesn't have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else diff --git a/Examples/lua/dual/dual.cpp b/Examples/lua/dual/dual.cpp index 2108a7275..d2b3c75c4 100644 --- a/Examples/lua/dual/dual.cpp +++ b/Examples/lua/dual/dual.cpp @@ -16,7 +16,7 @@ and check to see if types Foo and Bar are registered with it (Bar should be & Foo should not) Note: Though both the modules exist and are loaded, they are not linked together, -as they are connected to seperate lua interpreters. +as they are connected to separate lua interpreters. When the third lua state loads both example.i and example2.i, the two modules are now linked together, and all can now find diff --git a/Examples/lua/exception/runme.lua b/Examples/lua/exception/runme.lua index a798efca7..adb2516c4 100644 --- a/Examples/lua/exception/runme.lua +++ b/Examples/lua/exception/runme.lua @@ -2,7 +2,7 @@ ---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then - -- lua5.0 doesnt have a nice way to do this + -- lua5.0 doesn't have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else @@ -48,7 +48,7 @@ else end -- this is a rather strange way to perform the multiple catch of exceptions -print "calling t:mutli()" +print "calling t:multi()" for i=1,3 do ok,res=pcall(function() t:multi(i) end) if ok then diff --git a/Examples/lua/funcptr3/runme.lua b/Examples/lua/funcptr3/runme.lua index b78c504ef..3cd58520f 100644 --- a/Examples/lua/funcptr3/runme.lua +++ b/Examples/lua/funcptr3/runme.lua @@ -1,6 +1,6 @@ ---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then - -- lua5.0 doesnt have a nice way to do this + -- lua5.0 doesn't have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else diff --git a/Examples/lua/functest/runme.lua b/Examples/lua/functest/runme.lua index 65b3cc215..773ab5dd6 100644 --- a/Examples/lua/functest/runme.lua +++ b/Examples/lua/functest/runme.lua @@ -1,6 +1,6 @@ ---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then - -- lua5.0 doesnt have a nice way to do this + -- lua5.0 doesn't have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else diff --git a/Examples/lua/functor/runme.lua b/Examples/lua/functor/runme.lua index adf124ac6..d6f4d08c7 100644 --- a/Examples/lua/functor/runme.lua +++ b/Examples/lua/functor/runme.lua @@ -1,7 +1,7 @@ -- Operator overloading example ---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then - -- lua5.0 doesnt have a nice way to do this + -- lua5.0 doesn't have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else diff --git a/Examples/lua/import/runme.lua b/Examples/lua/import/runme.lua index 9cd7ae06c..7057b7bbd 100644 --- a/Examples/lua/import/runme.lua +++ b/Examples/lua/import/runme.lua @@ -3,7 +3,7 @@ print("Testing the %import directive") if string.sub(_VERSION,1,7)=='Lua 5.0' then - -- lua5.0 doesnt have a nice way to do this + -- lua5.0 doesn't have a nice way to do this function loadit(a) lib=loadlib(a..'.dll','luaopen_'..a) or loadlib(a..'.so','luaopen_'..a) assert(lib)() diff --git a/Examples/lua/nspace/runme.lua b/Examples/lua/nspace/runme.lua index 876814052..a894cf849 100644 --- a/Examples/lua/nspace/runme.lua +++ b/Examples/lua/nspace/runme.lua @@ -5,7 +5,7 @@ ---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then - -- lua5.0 doesnt have a nice way to do this + -- lua5.0 doesn't have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else diff --git a/Examples/lua/owner/runme.lua b/Examples/lua/owner/runme.lua index 847645448..4d953cba6 100644 --- a/Examples/lua/owner/runme.lua +++ b/Examples/lua/owner/runme.lua @@ -1,7 +1,7 @@ -- Operator overloading example ---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then - -- lua5.0 doesnt have a nice way to do this + -- lua5.0 doesn't have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else diff --git a/Examples/lua/pointer/runme.lua b/Examples/lua/pointer/runme.lua index 8deee67e6..2906cc663 100644 --- a/Examples/lua/pointer/runme.lua +++ b/Examples/lua/pointer/runme.lua @@ -1,6 +1,6 @@ ---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then - -- lua5.0 doesnt have a nice way to do this + -- lua5.0 doesn't have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else diff --git a/Examples/lua/simple/runme.lua b/Examples/lua/simple/runme.lua index 1e5a139c8..5f2e95c2f 100644 --- a/Examples/lua/simple/runme.lua +++ b/Examples/lua/simple/runme.lua @@ -1,6 +1,6 @@ ---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then - -- lua5.0 doesnt have a nice way to do this + -- lua5.0 doesn't have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else diff --git a/Examples/lua/variables/runme.lua b/Examples/lua/variables/runme.lua index 05b2d3fbf..826845e90 100644 --- a/Examples/lua/variables/runme.lua +++ b/Examples/lua/variables/runme.lua @@ -1,6 +1,6 @@ ---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then - -- lua5.0 doesnt have a nice way to do this + -- lua5.0 doesn't have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else @@ -54,9 +54,9 @@ example.print_vars() print "\nNow I'm going to try and modify some read only variables"; -print " Tring to set 'path' to 'Whoa!'"; +print " Trying to set 'path' to 'Whoa!'"; if pcall(function() example.path = "Whoa!" end)==true then - print " Thats funny, it didn't give an error!" + print " That's funny, it didn't give an error!" else print " It gave an error, as it should" end @@ -64,7 +64,7 @@ print(" Just checking the value: path =", example.path) print " Trying to set 'status' to '0'"; if pcall(function() example.status = 0 end)==true then - print " Thats funny, it didn't give an error!" + print " That's funny, it didn't give an error!" else print " It gave an error, as it should" end |